Browse Source

Remove legacy V8 workaround from normalizeReference(), #1153

pull/1197/head
Vitaly Puzrin 3 months ago
parent
commit
567878f660
  1. 11
      src/common/utils.ts

11
src/common/utils.ts

@ -253,17 +253,6 @@ function normalizeReference (str: string) {
//
str = str.trim().replace(/\s+/g, ' ')
// In node v10 'ẞ'.toLowerCase() === 'Ṿ', which is presumed to be a bug
// fixed in v12 (couldn't find any details).
//
// So treat this one as a special case
// (remove this when node v10 is no longer supported).
//
if ('ẞ'.toLowerCase() === 'Ṿ') {
/* c8 ignore next 2 */
str = str.replace(/ẞ/g, 'ß')
}
// .toLowerCase().toUpperCase() should get rid of all differences
// between letter variants.
//

Loading…
Cancel
Save