forked from platypush/platypush
Fixed regex typo
This commit is contained in:
parent
2914a74b75
commit
02b5ec1d38
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue