1
0
Fork 0
forked from github/pelican

Merge pull request #3054 from renyuneyun/refactor/python-regex

This commit is contained in:
Justin Mayer 2022-10-24 15:48:40 -10:00 committed by GitHub
commit 1f6f4a3626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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):