forked from github/pelican
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*=)
|
||||
|
||||
(?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)
|
||||
|
||||
def replacer(m):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue