normalize-for-search
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "normalize-for-search", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Un-accents and un-umlauts characters in a string. Also preliminary converts the string to lower case. We use it for autocomplete: both for the matched strings -- on the server side, when indexing; and for the strings the user types into a text input in the browser.", | ||
@@ -25,2 +25,3 @@ "main": "src/normalize.js", | ||
"readmeFilename": "README.md", | ||
"engine": "node >= 0.6", | ||
"devDependencies": { | ||
@@ -27,0 +28,0 @@ "jshint": "~2.1.2", |
@@ -10,2 +10,3 @@ /* jshint maxcomplexity: 100 */ | ||
switch (c) { | ||
case 'æ': | ||
case 'ä': | ||
@@ -30,4 +31,6 @@ return 'ae'; | ||
case 'è': | ||
case 'ë': | ||
return 'e'; | ||
case 'î': | ||
case 'ï': | ||
@@ -37,2 +40,3 @@ case 'í': | ||
case 'œ': | ||
case 'ö': | ||
@@ -53,2 +57,3 @@ return 'oe'; | ||
case 'ù': | ||
case 'ú': | ||
@@ -55,0 +60,0 @@ return 'u'; |
Sorry, the diff of this file is not supported yet
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
15225
127