Skip to content
Permalink
Browse files

Add wordbreaks to slut regex

  • Loading branch information
angussidney committed Mar 30, 2018
1 parent 825a685 commit 89b010e00e7f4acaceb0494be75a7c17aebfdd7b
Showing with 2 additions and 2 deletions.
  1. +2 −2 findspam.py
@@ -480,9 +480,9 @@ def is_offensive_post(s, site, *args):
r"(?is)\b(ur\Wm[ou]m|(yo)?u suck|[8B]={3,}[D>)]|nigg[aeu][rh]?|(ass\W?|a|a-)hole|fag(g?ot)?|"
r"daf[au][qk]|(?<!brain)(mother|mutha)?fuc?k+(a|ing?|e?[rd]| off+| y(ou|e)(rself)?|"
r" u+|tard)?|(bul+)?shit(t?er|head)?|(yo)?u(r|'?re)? (gay|scum)|dickhead|pedo|cocksuck(e?[rd])?|"
r"whore|cunt|jerk\W?off|cumm(y|ie)|butthurt|queef|(private|pussy) show|lesbo|slut+y?|"
r"whore|cunt|jerk\W?off|cumm(y|ie)|butthurt|queef|(private|pussy) show|lesbo|"
r"bitche?|(eat|suck|throbbing|sw[oe]ll(en|ing)?)\b.{0,20}\b (cock|dick)|dee[sz]e? nut[sz]|"
r"dumb\W?ass)s?|wet\W?pussy?|shot\W?my\W?(hot\W?)?load\b")
r"dumb\W?ass)s?|wet\W?pussy?(ies)?|\bslut+[ys]?\b|shot\W?my\W?(hot\W?)?load\b")
matches = offensive.finditer(s)
len_of_match = 0
text_matched = []

0 comments on commit 89b010e

Please sign in to comment.
You can’t perform that action at this time.