1
0
Fork 0
forked from github/pelican

Add content expansion

This commit is contained in:
Ravin Kumar 2022-04-28 19:31:21 -07:00
commit 595f3be988

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