hdue
This commit is contained in:
parent
85aab7de78
commit
752c42d860
1 changed files with 1 additions and 1 deletions
|
@ -864,7 +864,7 @@ def submit_post(v):
|
|||
gevent.spawn(archiveorg, new_post.url)
|
||||
|
||||
# archive other urls in post
|
||||
url_regex = '<a href=\"(https?://[a-z]{1,20}\.[^\"]+)\">(.+)</a>'
|
||||
url_regex = '<a href=\"(https?://[a-z]{1,20}\.[^\"]+)\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">(.+)</a>'
|
||||
print(new_post.body_html)
|
||||
for url_match in re.finditer(url_regex, new_post.body_html):
|
||||
href = url_match.group(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue