9427: Add new argument to IsEnclosedByRule

This commit is contained in:
Nick Hall 2016-07-26 18:35:05 +01:00
parent 93422189fe
commit 194bafd484

View File

@ -139,7 +139,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)