mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 07:10:46 -05:00
New search system: Flag if match is exact
This commit is contained in:
@@ -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 = ['','','',''];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user