normalize-for-search
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "normalize-for-search", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "src/normalize.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
{ | ||
"name": "normalize-for-search", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Un-accents and un-umlauts charecters 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.", | ||
@@ -5,0 +5,0 @@ "main": "src/normalize.js", |
@@ -45,2 +45,5 @@ (function (window, undefined) { | ||
case "ß": | ||
return "ss"; | ||
case "ё": | ||
@@ -47,0 +50,0 @@ return "е"; |
@@ -28,2 +28,6 @@ (function (undefined) { | ||
it("normalizes ß", function () { | ||
assert.strictEqual(normalizeForSearch("Straße"), "strasse"); | ||
}); | ||
it("normalizes ё", function () { | ||
@@ -30,0 +34,0 @@ assert.strictEqual(normalizeForSearch("ё"), "е"); |
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
6321
98