diff options
author | renyuneyun (Rui Zhao) <renyuneyun@gmail.com> | 2022-10-23 10:25:10 +0100 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2022-10-24 18:05:40 -0700 |
commit | cbddac44e49b637aa8035fbadb36e862865c7a8b (patch) | |
tree | 82f25d2f97babfa2d5015e24b23c63f6413d71dd | |
parent | 66408d611fd6122cfdba19e7a865789ce6e8bdbc (diff) | |
download | pelican-cbddac44e49b637aa8035fbadb36e862865c7a8b.tar.gz |
Use `(?P=)` to replace `\2` for intrasite link
-rw-r--r-- | pelican/contents.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pelican/contents.py b/pelican/contents.py index e59fa9ae..c979dd0a 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -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): |