From 5e0f5416ab92d4c000a415f2b4bf41ea21e9b51c Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Wed, 27 Oct 2021 11:03:43 +0200 Subject: [PATCH] iojd --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 59b774ed4..cc04b9416 100755 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -864,9 +864,9 @@ def submit_post(v): gevent.spawn(archiveorg, new_post.url) # archive other urls in post - url_regex = '(.+)' + url_regex = '([^\"]+)' print(new_post.body_html) - for url_match in re.finditer(url_regex, new_post.body_html): + for url_match in re.finditer(url_regex, new_post.body_html, flags=re.M|re.I): href = url_match.group(1) print(href) title = url_match.group(2)