X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/16bb0071350f66ff67308c5d33ae95dc1f2341ea..37eeccbf4cd7c25239b78d6c3747fccb1bca519c:/nominatim/tools/special_phrases/special_phrase.py diff --git a/nominatim/tools/special_phrases/special_phrase.py b/nominatim/tools/special_phrases/special_phrase.py index 448fbee4..3b6aef85 100644 --- a/nominatim/tools/special_phrases/special_phrase.py +++ b/nominatim/tools/special_phrases/special_phrase.py @@ -13,7 +13,8 @@ class SpecialPhrase(): def __init__(self, p_label, p_class, p_type, p_operator): self.p_label = p_label.strip() self.p_class = p_class.strip() - #Hack around a bug where building=yes was imported with quotes into the wiki + # Hack around a bug where building=yes was imported with quotes into the wiki self.p_type = re.sub(r'\"|"', '', p_type.strip()) - #Needed if some operator in the wiki are not written in english + # Needed if some operator in the wiki are not written in english + p_operator = p_operator.strip().lower() self.p_operator = '-' if p_operator not in ('near', 'in') else p_operator