normalize-for-search
Advanced tools
Comparing version 2.0.1 to 2.1.0
{ | ||
"name": "normalize-for-search", | ||
"version": "2.0.1", | ||
"version": "2.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.", | ||
@@ -25,7 +25,7 @@ "main": "src/normalize.js", | ||
"readmeFilename": "README.md", | ||
"engine": "node >= 0.6", | ||
"engine": "node >= 0.10", | ||
"devDependencies": { | ||
"jshint": "~2.9.2", | ||
"mocha": "~2.5.3" | ||
"jshint": "^2.9.2", | ||
"mocha": "^3.4.1" | ||
} | ||
} |
@@ -36,4 +36,6 @@ [![Build Status](https://travis-ci.org/ikr/normalize-for-search.svg?branch=master)](https://travis-ci.org/ikr/normalize-for-search) | ||
// String -> String | ||
normalizeForSearch('Dät ist naïve und ÜBERCOOL, ё-маё!'); | ||
// 'dat ist naive und ubercool, е-мае!' | ||
// 'daet ist naive und uebercool, е-мае!' | ||
@@ -40,0 +42,0 @@ # License: MIT |
@@ -31,2 +31,3 @@ /* jshint maxcomplexity: 100 */ | ||
case 'ë': | ||
case 'ē': | ||
return 'e'; | ||
@@ -57,2 +58,3 @@ | ||
case 'ú': | ||
case 'ŭ': | ||
return 'u'; | ||
@@ -59,0 +61,0 @@ |
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
14737
117
62