diff options
author | Nathan Mascitelli <mascitelli.nathan@gmail.com> | 2019-03-02 08:47:52 -0500 |
---|---|---|
committer | Nathan Mascitelli <mascitelli.nathan@gmail.com> | 2019-03-02 08:47:52 -0500 |
commit | 6f69b4b1403f2ca4a7fd1125d145bf13252c3732 (patch) | |
tree | d9abc19cf8d8e53291b9bef0a45cd541d75f386f /core/src/main/java | |
parent | e94e4bc3d03d2e6d5122700fd3161bfa63dc4371 (diff) | |
download | AntennaPod-6f69b4b1403f2ca4a7fd1125d145bf13252c3732.zip |
Adjust regext to ignore X:Y timecodes
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java index 057de06dd..7b9a49fa8 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/Timeline.java @@ -70,7 +70,7 @@ public class Timeline { private static final Pattern TIMECODE_LINK_REGEX = Pattern.compile("antennapod://timecode/((\\d+))"); private static final String TIMECODE_LINK = "<a class=\"timecode\" href=\"antennapod://timecode/%d\">%s</a>"; - private static final Pattern TIMECODE_REGEX = Pattern.compile("\\b(?:(?:(\\d*):)?([0-5]?\\d):)?([0-5]?\\d)\\b"); + private static final Pattern TIMECODE_REGEX = Pattern.compile("\\b(?:(?:(\\d*):)?([0-5]?\\d):)?([0-5][0-9]?\\d)\\b"); private static final Pattern LINE_BREAK_REGEX = Pattern.compile("<br */?>"); |