Commit 42fa77dd authored by Michal Čihař's avatar Michal Čihař

Inverted logic

parent ee9ac341
......@@ -364,7 +364,7 @@ class EndExclamationCheck(Check):
def check_single(self, source, target, flags, language, unit):
if self.is_language(language, ['eu']):
if source[-1] == '!':
return u'¡' in target and u'!' in target
return not(u'¡' in target and u'!' in target)
if self.is_language(language, ['fr', 'br']):
if len(target) == 0:
return False
......
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