Fixed timestamp parsing

This commit is contained in:
Harry Zhou 2022-07-02 22:59:11 -05:00
parent 9b3a45b8b7
commit 4fbe707027

View file

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