mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
refactor: Keep sub replacements' format uniform.
This commit is contained in:
parent
496158c2d7
commit
31c92cdcbc
@ -152,9 +152,9 @@ class Command(makemessages.Command):
|
||||
# type: (str) -> str
|
||||
|
||||
# Removes multi line comments.
|
||||
data = re.sub(multiline_js_comment, "", data)
|
||||
data = multiline_js_comment.sub('', data)
|
||||
# Removes single line (//) comments.
|
||||
data = re.sub(singleline_js_comment, "", data)
|
||||
data = singleline_js_comment.sub('', data)
|
||||
return data
|
||||
|
||||
def get_translation_strings(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user