Skip to content

Commit

Permalink
Catch 'EX' in product name rule --autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
angussidney committed Mar 11, 2017
1 parent 9f74b1d commit e116ebb
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 @@ -189,7 +189,7 @@ def pattern_product_name(s, site, *args):
"Pure", "Skin", "Sea", "Muscle", "Ascend",
"Serum", "Supplement", "Fuel", "Cream"]
if site != "math.stackexchange.com" and site != "mathoverflow.net":
keywords += ["Xt?", "Aplha", "Prime", "Formula"]
keywords += ["E?Xt?", "Aplha", "Prime", "Formula"]
keywords = "|".join(keywords)
three_words = regex.compile(ur"(?i)\b(({0})[ -]({0})[ -]({0}))\b".format(keywords)).findall(s)
two_words = regex.compile(ur"(?i)\b(({0})[ -]({0}))\b".format(keywords)).findall(s)
Expand Down

0 comments on commit e116ebb

Please sign in to comment.