From 02b5ec1d387f7d9ee623f59ace01e470fdf7526a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 27 Nov 2021 01:43:57 +0100 Subject: [PATCH] Fixed regex typo --- platypush/plugins/http/webpage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/http/webpage/__init__.py b/platypush/plugins/http/webpage/__init__.py index 23008890a..c4ff41241 100644 --- a/platypush/plugins/http/webpage/__init__.py +++ b/platypush/plugins/http/webpage/__init__.py @@ -35,7 +35,7 @@ class HttpWebpagePlugin(Plugin): def _fix_relative_links(markdown: str, url: str) -> str: url = urlparse(url) base_url = f'{url.scheme}://{url.netloc}' - return re.sub(r'(!?\[.+?])\((/.+?)\)', f'\1({base_url}\2)', markdown) + return re.sub(r'(\[.+?])\((/.+?)\)', fr'\1({base_url}\2)', markdown) # noinspection PyShadowingBuiltins @action