mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
fix search bug in Japanese
This commit is contained in:
parent
ae467f35c4
commit
67dc2e2d00
3 changed files with 6 additions and 5 deletions
2
DeckEditor/Deck.min.js
vendored
2
DeckEditor/Deck.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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);
|
||||
|
|
|
@ -47,4 +47,4 @@ background/loading.gif
|
|||
NETWORK:
|
||||
*
|
||||
|
||||
# 2016/05/10 02:09
|
||||
# 2016/05/10 02:19
|
||||
|
|
Loading…
Reference in a new issue