decentral1se
4 years ago
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with
1 additions and
1 deletions
-
LogBot/logbot.py
|
@ -13,7 +13,7 @@ def _href_wrap(post): |
|
|
"""Wrap links in a tags as a Jinja template filter.""" |
|
|
"""Wrap links in a tags as a Jinja template filter.""" |
|
|
for url in re.findall(r"http\S+", post): |
|
|
for url in re.findall(r"http\S+", post): |
|
|
url_with_href = f"<a href='{url}'>{url}</a>" |
|
|
url_with_href = f"<a href='{url}'>{url}</a>" |
|
|
post.replace(url, url_with_href) |
|
|
post = post.replace(url, url_with_href) |
|
|
return post |
|
|
return post |
|
|
|
|
|
|
|
|
|
|
|
|
|
|