updated regexp doesn't use third match

This commit is contained in:
Damien Elmes 2012-07-04 18:28:26 +09:00
parent 8d46173de9
commit 98c072fc2a

View file

@ -10,7 +10,6 @@ r = r' ?([^ >]+?)\[(.+?)\]'
ruby = r'<ruby><rb>\1</rb><rt>\2</rt></ruby>'
def noSound(repl):
repl += r"\3"
def func(match):
if match.group(2).startswith("sound:"):
# return without modification