mirror of
https://github.com/nilaoda/N_m3u8DL-RE.git
synced 2025-04-29 14:14:38 +02:00
Fixed Regex substitution for subtitle newline (#639)
If subtitle XML had \n in it, then the "xmlContentFix" wouldn't work, so I updated the Regex to include \n in it.
This commit is contained in:
parent
5ed7b23713
commit
ad7136ae64
@ -32,7 +32,7 @@ public static partial class MP4TtmlUtil
|
||||
{
|
||||
[GeneratedRegex(" \\w+:\\w+=\\\"[^\\\"]*\\\"")]
|
||||
private static partial Regex AttrRegex();
|
||||
[GeneratedRegex("<p.*?>(.+?)<\\/p>")]
|
||||
[GeneratedRegex("<p.*?>((.|\n)+?)<\\/p>")]
|
||||
private static partial Regex LabelFixRegex();
|
||||
[GeneratedRegex(@"\<tt[\s\S]*?\<\/tt\>")]
|
||||
private static partial Regex MultiElementsFixRegex();
|
||||
|
Loading…
x
Reference in New Issue
Block a user