Merge pull request #108 from holycrepe/patch-1

Update Field Searches to match multi-line fields
This commit is contained in:
Damien Elmes 2015-09-26 13:09:23 +10:00
commit 621923d45d

View file

@ -433,7 +433,7 @@ where mid in %s and flds like ? escape '\\'""" % (
ord = mods[str(mid)][1] ord = mods[str(mid)][1]
strg = flds[ord] strg = flds[ord]
try: try:
if re.search("(?i)^"+regex+"$", strg): if re.search("(?si)^"+regex+"$", strg):
nids.append(id) nids.append(id)
except sre_constants.error: except sre_constants.error:
return return