diff --git a/muxtools/subtitle/sub.py b/muxtools/subtitle/sub.py index 30bcd04..497187b 100644 --- a/muxtools/subtitle/sub.py +++ b/muxtools/subtitle/sub.py @@ -222,7 +222,7 @@ def autoswapper( marker = re.escape(inline_marker) - ab_swap_regex = re.compile(rf"{{{marker}}}(.*?){{{marker}([^}}*]+)}}") + ab_swap_regex = re.compile(rf"{{{marker}}}(.*?){{{marker}([^}}]+)}}") show_word_regex = re.compile(rf"{{{marker}{marker}([^}}]+)}}") hide_word_regex = re.compile(rf"{{{marker}}}(.*?){{{marker} *}}")