mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Change the regex so that it parse |filename| and {filename} equally
Updates getpelican/pelican#1061
This commit is contained in:
parent
8367ae4e98
commit
2f34307e12
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ class Content(object):
|
||||||
(?:href|src)\s*=)
|
(?:href|src)\s*=)
|
||||||
|
|
||||||
(?P<quote>["\']) # require value to be quoted
|
(?P<quote>["\']) # require value to be quoted
|
||||||
(?P<path>\|(?P<what>.*?)\|(?P<value>.*?)) # the url value
|
(?P<path>[|{](?P<what>.*?)[|}](?P<value>.*?)) # the url value
|
||||||
\2""", re.X)
|
\2""", re.X)
|
||||||
|
|
||||||
def replacer(m):
|
def replacer(m):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue