mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
support ? for single char search
This commit is contained in:
parent
af66630f07
commit
783751d7ea
1 changed files with 1 additions and 0 deletions
|
@ -1959,6 +1959,7 @@ cardTags.tagId in %s""" % ids2str(ids)
|
|||
elif isNeg:
|
||||
fquery += "select id from facts except "
|
||||
token = token.replace("*", "%")
|
||||
token = token.replace("?", "_")
|
||||
args["_ff_%d" % c] = "%"+token+"%"
|
||||
q = "select factId from fields where value like :_ff_%d" % c
|
||||
fquery += q
|
||||
|
|
Loading…
Reference in a new issue