diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 16:48:35 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-02 16:48:35 +1300 |
commit | 84fe4169b0f64b05456633cd9880dfff986e30c8 (patch) | |
tree | 274550c4b770c402e8526ba810aff29b823631c6 | |
parent | Merge branch 'feature/doc-tweaks' into develop (diff) | |
parent | Handle blank lyric lines (diff) | |
download | Music-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.pm | 4 |
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, |