Fixed subzero mods hearing-impaired removal regex broken in a82dca9. #2849

This commit is contained in:
morpheus65535 2025-04-29 23:11:46 -04:00
parent c853de8bd7
commit 3a248b3741

View file

@ -73,7 +73,7 @@ class HearingImpaired(SubtitleTextModification):
# all caps line (at least 4 consecutive uppercase chars,only remove if line matches common HI cues, otherwise keep)
NReProcessor(
re.compile(r'(?u)^(?=.*[A-ZÀ-Ž&+]{4,})[A-ZÀ-Ž-_\s&+]+$'),
re.compile(r'(?u)(^(?=.*[A-ZÀ-Ž&+]{4,})[A-ZÀ-Ž-_\s&+]+$)'),
lambda m: "" if any(
cue in m.group(1)
for cue in [