|
|
|
@ -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.
|
|
|
|
//
|
|
|
|
|