1
0
Fork 0
forked from github/pelican

Change the regex so that it parse |filename| and {filename} equally

Updates getpelican/pelican#1061
This commit is contained in:
Talha Mansoor 2013-08-29 23:14:47 +05:00
commit 2f34307e12

View file

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