Skip to content

Commit

Permalink
here's your whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
normalhuman committed Dec 9, 2015
1 parent 56db823 commit 29a7bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Expand Up @@ -60,7 +60,7 @@ def non_english_link(s, site): # non-english link in short answer
for link_text in links:
word_chars = regex.sub(r"(?u)\W", "", link_text)
non_latin_chars = regex.sub(r"\w", "", word_chars)
if len(non_latin_chars) > 0.2*len(word_chars) and len(non_latin_chars) >= 2:
if len(non_latin_chars) > 0.2 * len(word_chars) and len(non_latin_chars) >= 2:
return True, u"Non-English link text {}".format(link_text)
return False, ""

Expand Down

0 comments on commit 29a7bb8

Please sign in to comment.