From 72e897b44b9e084cf965f6b30fef00d243d4e5c0 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 31 Jan 2016 21:47:37 -0500 Subject: [PATCH] Database.select(where=('','LIKE','')) in Python matches across lines --- gramps/gen/db/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gen/db/base.py b/gramps/gen/db/base.py index 4f1f3de40..6236def26 100644 --- a/gramps/gen/db/base.py +++ b/gramps/gen/db/base.py @@ -1940,7 +1940,8 @@ class DbWriteBase(DbReadBase): elif op == "LIKE": if value and v: value = value.replace("%", "(.*)").replace("_", ".") - matched = re.match("^" + value + "$", v) + ## FIXME: allow a case-insensitive version + matched = re.match("^" + value + "$", v, re.MULTILINE) else: matched = False else: