normalize-for-search
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "normalize-for-search", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "src/normalize.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
{ | ||
"name": "normalize-for-search", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"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", |
@@ -13,2 +13,3 @@ (function (window, undefined) { | ||
case 'ã': | ||
case 'â': | ||
return 'a'; | ||
@@ -22,2 +23,3 @@ | ||
case 'ê': | ||
case 'è': | ||
return 'e'; | ||
@@ -24,0 +26,0 @@ |
@@ -16,2 +16,6 @@ (function (undefined) { | ||
it('normalizes â', function () { | ||
assert.strictEqual(normalizeForSearch('â'), 'a'); | ||
}); | ||
it('normalizes ö', function () { | ||
@@ -37,2 +41,6 @@ assert.strictEqual(normalizeForSearch('ö'), 'oe'); | ||
it('normalizes è', function () { | ||
assert.strictEqual(normalizeForSearch('è'), 'e'); | ||
}); | ||
it('satisfies the end-to-end test from the README', function () { | ||
@@ -39,0 +47,0 @@ assert.strictEqual( |
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
6863
103