Commit 266c1391 by olly Committed by Oliver Woodman

Fix spurious regex simpliciation

Android Studio claims this escaping isn't required, but now it's removed this code crashes due to a malformed regex.

PiperOrigin-RevId: 279501823
parent 71f7ab1c
...@@ -198,7 +198,7 @@ public final class SsaDecoder extends SimpleSubtitleDecoder { ...@@ -198,7 +198,7 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
String text = String text =
lineValues[formatTextIndex] lineValues[formatTextIndex]
.replaceAll("\\{.*?}", "") .replaceAll("\\{.*?\\}", "") // Warning that \\} can be replaced with } is bogus.
.replaceAll("\\\\N", "\n") .replaceAll("\\\\N", "\n")
.replaceAll("\\\\n", "\n"); .replaceAll("\\\\n", "\n");
cues.add(new Cue(text)); cues.add(new Cue(text));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment