Fixed timestamp parsing
This commit is contained in:
parent
9b3a45b8b7
commit
4fbe707027
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue