X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=plomsearch.py;h=fc5665fa24bfc3c402a2eea11cbcfd4839ad780d;hb=8bbb7d5aff28115d74360e72898ae3fba72c9ece;hp=da1175055ad7806221185f0d5c44b5d85414cbc0;hpb=7bbd08d498b289f2f3cad8b85c8582aa6ceffc04;p=plomlombot-irc.git
diff --git a/plomsearch.py b/plomsearch.py
index da11750..fc5665f 100644
--- a/plomsearch.py
+++ b/plomsearch.py
@@ -14,7 +14,7 @@ def parseToCompoundStatement(string):
quotes = "'\""
escape = '\\'
space = " "
- meta_marker = "\n"
+ meta_marker = "\0"
not_words = ["NOT"]
and_words = ["AND"]
or_words = ["OR"]
@@ -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: