Commit 890c675e authored by Michal Čihař's avatar Michal Čihař

Trigger special rule only for : at the end (issue #35)

parent 8cd3fcc3
......@@ -301,12 +301,10 @@ class EndStopCheck(Check):
def check_single(self, source, target, flags, language, unit):
if len(source) == 1 and len(target) == 1:
return False
if self.is_language(language, ['ja']):
if self.is_language(language, ['ja']) and source[-1] == ':':
# Japanese sentence might need to end with full stop
# in case it's used before list.
if source[-1] == ':':
return self.check_chars(source, target, -1, [u':', u':', u'.', u'。'])
return False
return self.check_chars(source, target, -1, [u':', u':', u'.', u'。'])
return self.check_chars(source, target, -1, [u'.', u'。', u'।', u'۔'])
......
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