Skip to content

Commit db42939

Browse files
committed
Don't catch single "X"s
1 parent c62bccb commit db42939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

findspam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def pattern_product_name(s, site, *args):
349349
"Pure", "Skin", "Sea", "Muscle", "Ascend", "Youth", "Hyper(?:tone)?", "Hydroluxe", "Booster",
350350
"Serum", "Supplement", "Fuel", "Cream", "Keto"]
351351
if site != "math.stackexchange.com" and site != "mathoverflow.net":
352-
keywords += [r"E?X[tl]?", "Alpha", "Plus", "Prime", "Formula"]
352+
keywords += [r"EX[tl]?|E?X[tl]", "Alpha", "Plus", "Prime", "Formula"]
353353
keywords = "|".join(keywords)
354354

355355
three_words = regex.compile(r"(?i)\b(({0})[ -]({0})[ -]({0}))\b".format(keywords)).findall(s)

0 commit comments

Comments
 (0)