mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
be case-insensitve about special phrase operator
This commit is contained in:
@@ -16,5 +16,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
|
||||
|
||||
Reference in New Issue
Block a user