Skip to content

Commit

Permalink
Change order of phone number formats
Browse files Browse the repository at this point in the history
The E.164 format is less frequent in spam than the US format, and the US
format is less frequent than the Indian format. This should speed up
SmokeDetector a bit.
  • Loading branch information
thomas-daniels committed Dec 23, 2014
1 parent 09b944f commit 97eb83e
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 @@ -43,7 +43,7 @@ def testpost(title, user_name, site):

@staticmethod
def checkphonenumbers(matched):
test_formats = [ None, "US", "IN" ]
test_formats = [ "IN", "US", None ]
for phone_number in matched:
for testf in test_formats:
try:
Expand Down

0 comments on commit 97eb83e

Please sign in to comment.