1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-20 06:56:40 +02:00

Change string comparator last char value to 0xfffd

This commit is contained in:
luckyrat 2019-03-25 17:54:49 +00:00
parent 1a421a7b34
commit 7e6892f828

View File

@ -1,4 +1,4 @@
const LastChar = String.fromCharCode(0xffffffff);
const LastChar = String.fromCharCode(0xfffd);
const ciCompare = (window.Intl && window.Intl.Collator && !/Edge/.test(navigator.userAgent)) // bugged in Edge: #808
? new Intl.Collator(undefined, { sensitivity: 'base' }).compare