mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
require consecutive match when filtering (#786)
This commit is contained in:
parent
d74338b6e9
commit
19f62e8d41
1 changed files with 2 additions and 3 deletions
|
@ -94,10 +94,9 @@ class StudyDeck(QDialog):
|
||||||
filt = filt.lower()
|
filt = filt.lower()
|
||||||
if not filt:
|
if not filt:
|
||||||
return True
|
return True
|
||||||
for c in filt:
|
for word in filt.split(" "):
|
||||||
if c not in name:
|
if word not in name:
|
||||||
return False
|
return False
|
||||||
name = name[name.index(c)+1:]
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def onReset(self):
|
def onReset(self):
|
||||||
|
|
Loading…
Reference in a new issue