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 1.1.0 to 1.2.0

3

package.json
{
"name": "normalize-for-search",
"version": "1.1.0",
"version": "1.2.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,2 +25,3 @@ "main": "src/normalize.js",

"readmeFilename": "README.md",
"engine": "node >= 0.6",
"devDependencies": {

@@ -27,0 +28,0 @@ "jshint": "~2.1.2",

@@ -10,2 +10,3 @@ /* jshint maxcomplexity: 100 */

switch (c) {
case 'æ':
case 'ä':

@@ -30,4 +31,6 @@ return 'ae';

case 'è':
case 'ë':
return 'e';
case 'î':
case 'ï':

@@ -37,2 +40,3 @@ case 'í':

case 'œ':
case 'ö':

@@ -53,2 +57,3 @@ return 'oe';

case 'ù':
case 'ú':

@@ -55,0 +60,0 @@ return 'u';

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