Fix loading on older browsers ()

This commit is contained in:
Nitan Alexandru Marcel 2022-03-18 03:36:48 +00:00 committed by GitHub
parent 13248962af
commit a2655ee6a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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;
}