Skip to content

Commit

Permalink
Don't strip code for numbers watch and blacklist
Browse files Browse the repository at this point in the history
autopull
  • Loading branch information
makyen committed Jan 31, 2025
1 parent dc55bc1 commit 52a0f30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ def check_numbers(s, numlist, numlist_normalized=None):
return False, ''


@create_rule("bad phone number in {}", body_summary=True, max_rep=32, max_score=1, stripcodeblocks=True)
@create_rule("bad phone number in {}", body_summary=True, max_rep=32, max_score=1, stripcodeblocks=False)
def check_blacklisted_numbers(s, site):
return check_numbers(
s,
Expand All @@ -1123,7 +1123,7 @@ def check_blacklisted_numbers(s, site):
)


@create_rule("potentially bad keyword in {}", body_summary=True, max_rep=32, max_score=1, stripcodeblocks=True,
@create_rule("potentially bad keyword in {}", body_summary=True, max_rep=32, max_score=1, stripcodeblocks=False,
rule_id="potentially bad phone number")
def check_watched_numbers(s, site):
return check_numbers(
Expand Down

0 comments on commit 52a0f30

Please sign in to comment.