X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5a1c3dbea3d607fabe05a125dd2d62df395cceaa..e65913d37614c9fdd1207a63e8cd6bd5e55f081e:/nominatim/tools/special_phrases/special_phrase.py?ds=sidebyside diff --git a/nominatim/tools/special_phrases/special_phrase.py b/nominatim/tools/special_phrases/special_phrase.py index eb95d919..dc7f69fe 100644 --- a/nominatim/tools/special_phrases/special_phrase.py +++ b/nominatim/tools/special_phrases/special_phrase.py @@ -1,3 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# This file is part of Nominatim. (https://nominatim.org) +# +# Copyright (C) 2022 by the Nominatim developer community. +# For a full list of authors see the git log. """ Module containing the class SpecialPhrase. @@ -16,5 +22,5 @@ class SpecialPhrase(): # 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 - p_operator = p_operator.strip() + p_operator = p_operator.strip().lower() self.p_operator = '-' if p_operator not in ('near', 'in') else p_operator