9427: Add new argument to IsEnclosedByRule

This commit is contained in:
Nick Hall 2016-07-26 18:35:05 +01:00
parent 480819dde8
commit 85b0b654bf

View File

@ -143,7 +143,7 @@ class PlaceSidebarFilter(SidebarFilter):
generic_filter.add_rule(rule)
if enclosed:
rule = IsEnclosedBy([enclosed])
rule = IsEnclosedBy([enclosed, '0'])
generic_filter.add_rule(rule)
rule = HasData([name, ptype, code], use_regex=regex)