Skip to content

Commit ad6469f

Browse files
committed
watch is watch, autopull
1 parent 8c44fc6 commit ad6469f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

chatcommands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def do_blacklist(blacklist_type, msg, force=False):
265265
else:
266266
is_phone = False
267267

268-
is_watchlist = bool(blacklist_type == 'watch_keyword')
268+
is_watchlist = bool("watch" in blacklist_type)
269269

270270
concretized_pattern = pattern.replace("\\W", " ").replace("\\.", ".").replace("\\d", "8")
271271

findspam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
r"""|(?:(?:[A-Za-z\u00a1-\uffff0-9]-?)*[A-Za-z\u00a1-\uffff0-9]+)(?:\.(?:[A-Za-z\u00a1-\uffff0-9]-?)"""
7373
r"""*[A-Za-z\u00a1-\uffff0-9]+)*(?:\.(?:[A-Za-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:/\S*)?""", regex.U)
7474
TAG_REGEX = regex.compile(r"</?[abcdehiklopsu][^>]+>|\w+://", regex.U)
75-
NUMBER_REGEX = regex.compile(r'\b[a-z_]*\+?(?:\d[\W_]*){8,13}\d(?=[a-z_]|\b)', regex.U)
75+
NUMBER_REGEX = regex.compile(r'\b[a-z_]*\+?(?:\d[\W_]*){8,13}\d(?=[a-z_]|\b)', regex.U | regex.I)
7676

7777
UNIFORM = math.log(1 / 36)
7878
UNIFORM_PRIOR = math.log(1 / 5)

watched_numbers.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
1529098579 tripleee +1 (808) 555-1212
2-
+1 (800) 666 9999

0 commit comments

Comments
 (0)