only split on space

This commit is contained in:
Damien Elmes 2009-03-23 10:29:45 +09:00
parent ff2d1d1964
commit cf67d66ad5

View file

@ -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: