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.0.4 to 1.1.0

.travis.yml

2

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

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