Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

normalize-for-search

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-for-search - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc