Commit 1de8ba7b authored by Michal Čihař's avatar Michal Čihař

Make ZeroWidthSpaceCheck behave consistent on both directions

parent 7b22d9e8
......@@ -716,7 +716,7 @@ class ZeroWidthSpaceCheck(TargetCheck):
description = _('Translation contains extra zero-width space character')
def check_single(self, source, target, flags, language, unit):
return u'\u200b' in target and not u'\u200b' in source
return (u'\u200b' in target) != (u'\u200b' in source)
class XMLTagsCheck(TargetCheck):
......
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