aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-02 17:04:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-02 17:04:41 +1300
commit1b729b897ad946ac35ee11e8d42cc821649f9273 (patch)
treeec6f7a41edaffccce7d902b7dbd5dee710c09fd1
parentMerge branch 'release/v0.08' into develop (diff)
downloadMusic-Lyrics-LRC-1b729b897ad946ac35ee11e8d42cc821649f9273.tar.gz
Music-Lyrics-LRC-1b729b897ad946ac35ee11e8d42cc821649f9273.zip
Tolerate one-digit seconds in lyric lines
Quite a few LRC files I've found don't prefix 0-9 seconds with a 0 to pad it to two digits, so we'd better tolerate it.
-rw-r--r--lib/Music/Lyrics/LRC.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Music/Lyrics/LRC.pm b/lib/Music/Lyrics/LRC.pm
index f7f6cdc..25d94e3 100644
--- a/lib/Music/Lyrics/LRC.pm
+++ b/lib/Music/Lyrics/LRC.pm
@@ -46,7 +46,7 @@ our %RE = (
(\d+) # Minutes, capture
: # Colon
( # Seconds group, capture
- \d{2} # Whole seconds
+ \d{1,2} # Whole seconds
(?: # Group for fractional seconds
[.] # Period
\d+ # At least one digit