mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-06-02 22:09:20 -05:00
New search system: Flag if match is exact
This commit is contained in:
parent
576ba2e2ef
commit
8f5f37ff9e
|
|
@ -50,11 +50,13 @@
|
|||
this.q = query;
|
||||
if (!query) {
|
||||
this.el.innerHTML = '';
|
||||
this.exactMatch = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
var i = Search.getClosest(query);
|
||||
if (!BattleSearchIndex[i]) i--;
|
||||
this.exactMatch = (query === BattleSearchIndex[i]);
|
||||
|
||||
var bufs = ['','','',''];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user