« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index 2599427..2da7e02 100644
--- a/ui.js
+++ b/ui.js
@@ -1187,7 +1187,7 @@ class AppElement extends FocusElement {
     const duration = (metadata ? metadata.duration : Infinity)
 
     const data = lines
-      .map(line => line.match(/^\s*([0-9:]+)\s*(\S.*)\s*$/))
+      .map(line => line.match(/^\s*([0-9:.]+)\s*(\S.*)\s*$/))
       .filter(match => match)
       .map(match => ({timestamp: getSecFromTimestamp(match[1]), comment: match[2]}))
       .filter(({ timestamp: sec }) => !isNaN(sec))