Skip to content

Commit

Permalink
missed delimiters, autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
𝐢𝐁𝐮𝐠 ♦ committed Feb 5, 2019
1 parent 085cf6c commit ba7595b
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 @@ -736,7 +736,7 @@ def pattern_product_name(s, site):
]
if site not in {"math.stackexchange.com", "mathoverflow.net"}:
keywords.extend([r"X\d?", "Alpha", "Plus", "Prime", "Formula", "Max+"])
keywords = regex.compile(r"(?i)\b(?P<x>{0})(?:[ -]*(?:{1})?(?P<x>{0}))+\b".format(
keywords = regex.compile(r"(?i)\b(?P<x>{0})(?:[ -]*(?:(?:{1})[ -]*)?(?P<x>{0}))+\b".format(
"|".join(keywords), "|".join(conjunctions)))
required = regex.compile(r"(?i){}".format("|".join(required_keywords)))

Expand Down

0 comments on commit ba7595b

Please sign in to comment.