1
0
Fork 0
forked from github/pelican

Merge pull request #3001 from canyon289/content_expansion

This commit is contained in:
Justin Mayer 2022-07-11 19:36:54 +02:00 committed by GitHub
commit 5c222ef41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -337,7 +337,7 @@ class Content:
intrasite_link_regex = self.settings['INTRASITE_LINK_REGEX']
regex = r"""
(?P<markup><[^\>]+ # match tag with all url-value attributes
(?:href|src|poster|data|cite|formaction|action)\s*=\s*)
(?:href|src|poster|data|cite|formaction|action|content)\s*=\s*)
(?P<quote>["\']) # require value to be quoted
(?P<path>{}(?P<value>.*?)) # the url value