mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
updated regexp doesn't use third match
This commit is contained in:
parent
8d46173de9
commit
98c072fc2a
1 changed files with 0 additions and 1 deletions
|
@ -10,7 +10,6 @@ r = r' ?([^ >]+?)\[(.+?)\]'
|
||||||
ruby = r'<ruby><rb>\1</rb><rt>\2</rt></ruby>'
|
ruby = r'<ruby><rb>\1</rb><rt>\2</rt></ruby>'
|
||||||
|
|
||||||
def noSound(repl):
|
def noSound(repl):
|
||||||
repl += r"\3"
|
|
||||||
def func(match):
|
def func(match):
|
||||||
if match.group(2).startswith("sound:"):
|
if match.group(2).startswith("sound:"):
|
||||||
# return without modification
|
# return without modification
|
||||||
|
|
Loading…
Reference in a new issue