mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use (?P=) to replace \2 for intrasite link
This commit is contained in:
parent
66408d611f
commit
cbddac44e4
1 changed files with 1 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ class Content:
|
||||||
|
|
||||||
(?P<quote>["\']) # require value to be quoted
|
(?P<quote>["\']) # require value to be quoted
|
||||||
(?P<path>{}(?P<value>.*?)) # the url value
|
(?P<path>{}(?P<value>.*?)) # the url value
|
||||||
\2""".format(intrasite_link_regex)
|
(?P=quote)""".format(intrasite_link_regex)
|
||||||
return re.compile(regex, re.X)
|
return re.compile(regex, re.X)
|
||||||
|
|
||||||
def _update_content(self, content, siteurl):
|
def _update_content(self, content, siteurl):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue