normalize-for-search
Advanced tools
Comparing version 1.0.4 to 1.1.0
{ | ||
"name": "normalize-for-search", | ||
"version": "1.0.4", | ||
"version": "1.1.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.", | ||
@@ -5,0 +5,0 @@ "main": "src/normalize.js", |
@@ -0,1 +1,3 @@ | ||
[![Build Status](https://travis-ci.org/ikr/normalize-for-search.svg?branch=master)](https://travis-ci.org/ikr/normalize-for-search) | ||
# About | ||
@@ -2,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* jshint bitwise: false, maxcomplexity: 100 */ | ||
/* jshint maxcomplexity: 100 */ | ||
@@ -13,2 +13,5 @@ (function (window, undefined) { | ||
case 'å': | ||
return 'aa'; | ||
case 'á': | ||
@@ -15,0 +18,0 @@ case 'à': |
@@ -15,2 +15,6 @@ (function (undefined) { | ||
it('normalizes å', function () { | ||
assert.strictEqual(normalizeForSearch('å'), 'aa'); | ||
}); | ||
it('normalizes â', function () { | ||
@@ -17,0 +21,0 @@ assert.strictEqual(normalizeForSearch('â'), 'a'); |
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
15103
8
122
74