be case-insensitve about special phrase operator

This commit is contained in:
Sarah Hoffmann
2021-10-25 19:51:20 +02:00
parent 5a1c3dbea3
commit c4f5c11a4e
2 changed files with 3 additions and 3 deletions

View File

@@ -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