Allows smoother transition from old modifier syntax {{a🅱️fld}} to new one {{a(b):fld}}
This commit is contained in:
parent
b99e349695
commit
fac360d744
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user