Fix loading on older browsers (#397)
This commit is contained in:
parent
13248962af
commit
a2655ee6a5
3 changed files with 5 additions and 5 deletions
src/util
|
@ -123,7 +123,7 @@ class AsyncSearch extends EventEmitter {
|
|||
_normalize(item) {
|
||||
let myItem = item.normalize(this.normalizeUnicode ? 'NFKC' : 'NFC');
|
||||
if (!this.isCaseSensitive) myItem = myItem.toLocaleLowerCase();
|
||||
if (this.ignoreWhitespace) myItem = myItem.replaceAll(' ', '');
|
||||
if (this.ignoreWhitespace) myItem = myItem.replace(/\s/g, '');
|
||||
return myItem;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue