1
0
Fork 0
forked from github/pelican

Use (?P=) to replace \2 for intrasite link

This commit is contained in:
renyuneyun (Rui Zhao) 2022-10-23 10:25:10 +01:00 committed by Justin Mayer
commit cbddac44e4

View file

@ -341,7 +341,7 @@ class Content:
(?P<quote>["\']) # require value to be quoted
(?P<path>{}(?P<value>.*?)) # the url value
\2""".format(intrasite_link_regex)
(?P=quote)""".format(intrasite_link_regex)
return re.compile(regex, re.X)
def _update_content(self, content, siteurl):