Verified Commit 02b5ec1d authored by Fabio Manganiello's avatar Fabio Manganiello
Browse files

Fixed regex typo

parent 2914a74b
Pipeline #113 passed with stages
in 5 minutes and 50 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment