Another atempt at fixing the regex
This commit is contained in:
parent
7e3ccd97da
commit
1d0e701525
|
@ -70,7 +70,7 @@ public class Timeline {
|
||||||
|
|
||||||
private static final Pattern TIMECODE_LINK_REGEX = Pattern.compile("antennapod://timecode/((\\d+))");
|
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 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+):)?(\\d+):(\\d{2})\\b");
|
||||||
private static final Pattern LINE_BREAK_REGEX = Pattern.compile("<br */?>");
|
private static final Pattern LINE_BREAK_REGEX = Pattern.compile("<br */?>");
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue