1 parent 2251d94 commit c333bf9Copy full SHA for c333bf9
1 file changed
python3/word-counter.py
@@ -18,8 +18,7 @@ def filter_func(tup):
18
return False
19
elif re.search('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+',word):
20
21
- else:
22
- return True
+ return True
23
24
def filtered_window(seq,n):
25
return filter(filter_func, sliding_window(n,seq))
0 commit comments