From 4fbe707027bd542a26346b5c334770b6421d380f Mon Sep 17 00:00:00 2001 From: Harry Zhou Date: Sat, 2 Jul 2022 22:59:11 -0500 Subject: [PATCH] Fixed timestamp parsing --- src/main/java/com/github/hhhzzzsss/songplayer/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/hhhzzzsss/songplayer/Util.java b/src/main/java/com/github/hhhzzzsss/songplayer/Util.java index a934ee7..74b3763 100644 --- a/src/main/java/com/github/hhhzzzsss/songplayer/Util.java +++ b/src/main/java/com/github/hhhzzzsss/songplayer/Util.java @@ -27,7 +27,7 @@ public class Util { return sb.toString(); } - public static Pattern timePattern = Pattern.compile("(?:(\\d+)?:)(\\d+):(\\d+)"); + public static Pattern timePattern = Pattern.compile("(?:(\\d+):)?(\\d+):(\\d+)"); public static long parseTime(String timeStr) throws IOException { Matcher matcher = timePattern.matcher(timeStr); if (matcher.matches()) {