mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
only split on space
This commit is contained in:
parent
ff2d1d1964
commit
cf67d66ad5
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class DeckModel(QAbstractTableModel):
|
||||||
d = {'str': [],
|
d = {'str': [],
|
||||||
'tag': [],
|
'tag': [],
|
||||||
}
|
}
|
||||||
for elem in search.split():
|
for elem in search.split(" "):
|
||||||
if len(elem) > 2 and elem.startswith("t:"):
|
if len(elem) > 2 and elem.startswith("t:"):
|
||||||
d['tag'].append(elem[2:])
|
d['tag'].append(elem[2:])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue