Fix loading on older browsers (#397)
This commit is contained in:
committed by
GitHub
parent
13248962af
commit
a2655ee6a5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user