home · contact · privacy
Make quote search case-insensitive.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 5 Feb 2020 22:04:28 +0000 (23:04 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 5 Feb 2020 22:04:28 +0000 (23:04 +0100)
plomsearch.py

index 54eacbb..fc5665f 100644 (file)
@@ -204,7 +204,7 @@ def search(query, string_list):
 
     def testStringMatchLogic(statement, compare_value):
         if type(statement) == str:
-            statement_true = statement in compare_value 
+            statement_true = statement.lower() in compare_value.lower()
         elif type(statement) == CompoundStatement:
             or_list_true = False
             if len(statement.or_list) > 1: