Skip to content

Commit

Permalink
autoswapper: allow * in swap string (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
itschasa authored Jan 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 85abc85 commit da28696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion muxtools/subtitle/sub.py
Original file line number Diff line number Diff line change
@@ -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} *}}")

0 comments on commit da28696

Please sign in to comment.