Commit 867d89e6 authored by Michal Čihař's avatar Michal Čihař

Prevent checking %%

What is important is to keep real format strings, things like % might be
used differently in different languages.
parent a31bc061
......@@ -206,6 +206,8 @@ def check_format_strings(source, target, regex):
return False
src_matches = set([x[0] for x in regex.findall(source)])
tgt_matches = set([x[0] for x in regex.findall(target)])
src_matches.remove('%')
tgt_matches.remove('%')
if src_matches != tgt_matches:
return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment