Fixed URL filtering
This commit is contained in:
parent
f42830dcd0
commit
8417385792
1 changed files with 3 additions and 1 deletions
4
cloud.py
4
cloud.py
|
@ -51,7 +51,9 @@ if args.m is None:
|
|||
|
||||
def fetch_comments(comment) -> list:
|
||||
if len(comment.replies) == 0:
|
||||
return [re.sub(r'https?://\S+', '', comment.body)]
|
||||
c = re.sub(r'https?://\S+', '', comment.body)
|
||||
c = re.sub(r'http?://\S+', '', c)
|
||||
return [c]
|
||||
|
||||
raw_comments = [comment.body]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue