mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
field:foo searches should be case insensitive
This commit is contained in:
parent
8a8ce2bffb
commit
82ead398db
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ where mid in %s and flds like ? escape '\\'""" % (
|
|||
strg = flds[ord]
|
||||
if self.full:
|
||||
strg = stripHTML(strg)
|
||||
if re.search(regex, strg):
|
||||
if re.search("(?i)"+regex, strg):
|
||||
nids.append(id)
|
||||
extra = "not" if isNeg else ""
|
||||
self.lims['preds'].append("""
|
||||
|
|
Loading…
Reference in a new issue