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()) {