@sindresorhus/transliterate
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -1,2 +0,1 @@ | ||
import deburr from 'lodash.deburr'; | ||
import escapeStringRegexp from 'escape-string-regexp'; | ||
@@ -31,5 +30,5 @@ import builtinReplacements from './replacements.js'; | ||
string = doCustomReplacements(string, customReplacements); | ||
string = deburr(string); | ||
string = string.normalize('NFD').replace(/\p{Diacritic}/gu, '').normalize(); | ||
return string; | ||
} |
{ | ||
"name": "@sindresorhus/transliterate", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Convert Unicode characters to Latin characters using transliteration", | ||
@@ -40,4 +40,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"escape-string-regexp": "^5.0.0", | ||
"lodash.deburr": "^4.1.0" | ||
"escape-string-regexp": "^5.0.0" | ||
}, | ||
@@ -44,0 +43,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
37387
2083
- Removedlodash.deburr@^4.1.0
- Removedlodash.deburr@4.1.0(transitive)