fix search bug in Japanese

This commit is contained in:
WEBXOSS 2017-05-10 02:19:24 +08:00
parent ae467f35c4
commit 67dc2e2d00
3 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -29,9 +29,10 @@ Searcher.prototype.search = function (str) {
var filters = this.rules.map(function (rule) {
return rule.parse(words);
},this);
var infos = Object.keys(CardInfo).map(function (pid) {
return CardInfo[pid];
});
var infos = [];
for (var pid in CardInfo) {
infos.push(CardInfo[pid]);
}
return filters.reduce(function (results,filter) {
return results.filter(filter);
},infos);

View file

@ -47,4 +47,4 @@ background/loading.gif
NETWORK:
*
# 2016/05/10 02:09
# 2016/05/10 02:19