re.IGNORECASE in the regexp function compiled for sqlite

This commit is contained in:
Brian S. Stephan 2010-11-01 22:12:14 -05:00
parent 0bcefc49b5
commit 57b6ffa0b7
1 changed files with 1 additions and 1 deletions

View File

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