Skip to content

Commit

Permalink
Merge pull request #4134 from user12986714/patch-43
Browse files Browse the repository at this point in the history
Add visit my channel to bad keyword with a link
-autopull
  • Loading branch information
makyen committed Jun 30, 2020
2 parents 43000f9 + 81bb4ab commit e3c0de3
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 @@ -911,7 +911,7 @@ def keyword_link(s, site): # thanking keyword and a link in the same short ans
thanks = regex.compile(r"(?i)\b(appreciate|than(k|ks|x)|gratidão)\b").search(s)
keyword = regex.compile(r"(?i)\b(I really appreciate|many thanks|thanks a lot|thank you (very|for)|"
r"than(ks|x) for (sharing|this|your)|dear forum members|(very (informative|useful)|"
r"stumbled upon (your|this)|wonderful|visit my) (blog|site|website))\b").search(s)
r"stumbled upon (your|this)|wonderful|visit my) (blog|site|website|channel))\b").search(s)
if link and keyword:
return True, u"Keyword *{}* with link {}".format(keyword.group(0), link.group(0))
if link and thanks and praise:
Expand Down

0 comments on commit e3c0de3

Please sign in to comment.