re.IGNORECASE in the regexp function compiled for sqlite
This commit is contained in:
parent
0bcefc49b5
commit
57b6ffa0b7
|
@ -51,7 +51,7 @@ class Module(object):
|
||||||
|
|
||||||
# setup regexp function in sqlite
|
# setup regexp function in sqlite
|
||||||
def regexp(expr, item):
|
def regexp(expr, item):
|
||||||
reg = re.compile(expr)
|
reg = re.compile(expr, re.IGNORECASE)
|
||||||
return reg.search(item) is not None
|
return reg.search(item) is not None
|
||||||
self.conn.create_function('REGEXP', 2, regexp)
|
self.conn.create_function('REGEXP', 2, regexp)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue