From: Christian Heller Date: Wed, 5 Feb 2020 22:04:28 +0000 (+0100) Subject: Make quote search case-insensitive. X-Git-Url: https://plomlompom.com/repos/do_todos?a=commitdiff_plain;h=52643801d3b5e39b5728d9f953614bb85b7cdfda;p=plomlombot-irc.git Make quote search case-insensitive. --- diff --git a/plomsearch.py b/plomsearch.py index 54eacbb..fc5665f 100644 --- a/plomsearch.py +++ b/plomsearch.py @@ -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: