aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-02 16:48:35 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-02 16:48:35 +1300
commit84fe4169b0f64b05456633cd9880dfff986e30c8 (patch)
tree274550c4b770c402e8526ba810aff29b823631c6
parentMerge branch 'feature/doc-tweaks' into develop (diff)
parentHandle blank lyric lines (diff)
downloadMusic-Lyrics-LRC-84fe4169b0f64b05456633cd9880dfff986e30c8.tar.gz
Music-Lyrics-LRC-84fe4169b0f64b05456633cd9880dfff986e30c8.zip
Merge branch 'feature/tagname-non...' into develop
* feature/tagname-non-numchar: Handle blank lyric lines
-rw-r--r--lib/Music/Lyrics/LRC.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Music/Lyrics/LRC.pm b/lib/Music/Lyrics/LRC.pm
index 7aec07c..aa9ab37 100644
--- a/lib/Music/Lyrics/LRC.pm
+++ b/lib/Music/Lyrics/LRC.pm
@@ -54,7 +54,9 @@ our %RE = (
) # End seconds group
\] # Closing right bracket
[\t ]* # Any tabs or spaces
- (.*\S) # Lyric line, capture
+ ( # Lyric line group, capture
+ (?:.*\S)? # Anything ending with non-whitespace
+ ) # End lyric line group
\s* # Any whitespace
\z # End of string
}msx,