refactor: Keep sub replacements' format uniform.

This commit is contained in:
Yago González 2017-03-30 19:50:38 +02:00 committed by Tim Abbott
parent 496158c2d7
commit 31c92cdcbc
1 changed files with 2 additions and 2 deletions

View File

@ -152,9 +152,9 @@ class Command(makemessages.Command):
# type: (str) -> str # type: (str) -> str
# Removes multi line comments. # Removes multi line comments.
data = re.sub(multiline_js_comment, "", data) data = multiline_js_comment.sub('', data)
# Removes single line (//) comments. # Removes single line (//) comments.
data = re.sub(singleline_js_comment, "", data) data = singleline_js_comment.sub('', data)
return data return data
def get_translation_strings(self): def get_translation_strings(self):