Use string quotes to detect end.

This commit is contained in:
Michael Gorven 2009-11-06 11:40:31 +02:00
parent f76516f2a0
commit ab42730f1e
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ ts_message = u""" <message>
<translation type="unfinished"></translation>
</message>
"""
find_trUtf8 = re.compile(r"trUtf8\(u['\"]([^)]+)['\"]\)", re.UNICODE)
find_trUtf8 = re.compile(r"trUtf8\(u?(['\"])([^\1]+)\1\)", re.UNICODE)
strings = {}
def parse_file(filename):