Allows smoother transition from old modifier syntax {{a🅱️fld}} to new one {{a(b):fld}}

This commit is contained in:
Julien Baley 2014-04-14 17:21:28 +01:00
parent b99e349695
commit fac360d744

View File

@ -192,7 +192,7 @@ class Template(object):
else:
# hook-based field modifier
mod, extra = re.search("^(.*?)(?:\((.*)\))?$", mod).groups()
txt = runFilter('fmod_' + mod, txt or '', extra, context,
txt = runFilter('fmod_' + mod, txt or '', extra or '', context,
tag, tag_name);
if txt is None:
return '{unknown field %s}' % tag_name