We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0da2530 commit db84f84Copy full SHA for db84f84
pelican/contents.py
@@ -372,9 +372,7 @@ def _find_path(path: str) -> Optional[Content]:
372
def _get_intrasite_link_regex(self) -> re.Pattern:
373
intrasite_link_regex = self.settings["INTRASITE_LINK_REGEX"]
374
regex = rf"""
375
- (?P<markup><[^\>]+ # match tag with all url-value attributes
376
- (?:href|src|poster|data|cite|formaction|action|content)\s*=\s*)
377
-
+ (?P<markup>(?:href|src|poster|data|cite|formaction|action|content)\s*=\s*)
378
(?P<quote>["\']) # require value to be quoted
379
(?P<path>{intrasite_link_regex}(?P<value>.*?)) # the url value
380
(?P=quote)"""
0 commit comments