|
@@ -19,7 +19,7 @@ db.create_function('SHA512', 1, lambda text:
|
|
|
# function named "regexp" is added at run-time, then the "X REGEXP Y" operator
|
|
|
# will be implemented as a call to "regexp(Y,X)".
|
|
|
db.create_function('REGEXP', 2, lambda pattern, string:
|
|
|
- re.match(pattern, string, flags=re.IGNORECASE) is not None)
|
|
|
+ re.search(pattern, string, flags=re.IGNORECASE) is not None)
|
|
|
|
|
|
# Store a new session_id for a user that has logged in
|
|
|
# The session token is stored in the user cookies during login, here
|