From 57b6ffa0b79d3774a2fc0782c21002902056c3da Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 1 Nov 2010 22:12:14 -0500 Subject: [PATCH] re.IGNORECASE in the regexp function compiled for sqlite --- Module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Module.py b/Module.py index ffcb5d4..a4a78f3 100644 --- a/Module.py +++ b/Module.py @@ -51,7 +51,7 @@ class Module(object): # setup regexp function in sqlite def regexp(expr, item): - reg = re.compile(expr) + reg = re.compile(expr, re.IGNORECASE) return reg.search(item) is not None self.conn.create_function('REGEXP', 2, regexp)