Skip to content

Commit

Permalink
more SQL non-spam
Browse files Browse the repository at this point in the history
  • Loading branch information
normalhuman committed Nov 27, 2015
1 parent 1e6145a commit 0dd3d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def all_caps_text(s, site):
if regex.compile(ur"SQL|\b(ERROR|PHP|QUERY|ANDROID|CASE|SELECT|HAVING|COUNT)\b").search(s):
if regex.compile(ur"SQL|\b(ERROR|PHP|QUERY|ANDROID|CASE|SELECT|HAVING|COUNT|GROUP|ORDER BY|INNER|OUTER)\b").search(s):
return False # common words in non-spam all-caps titles
return bool(regex.compile(ur"^(?=.*\p{upper})\P{lower}*$", regex.UNICODE).search(s))

Expand Down

0 comments on commit 0dd3d9e

Please sign in to comment.