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.1 to 1.0.2

2

bower.json
{
"name": "normalize-for-search",
"version": "1.0.1",
"version": "1.0.2",
"main": "src/normalize.js",

@@ -5,0 +5,0 @@ "ignore": [

{
"name": "normalize-for-search",
"version": "1.0.1",
"version": "1.0.2",
"description": "Un-accents and un-umlauts charecters 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",

@@ -13,2 +13,3 @@ (function (window, undefined) {

case 'ã':
case 'â':
return 'a';

@@ -22,2 +23,3 @@

case 'ê':
case 'è':
return 'e';

@@ -24,0 +26,0 @@

@@ -16,2 +16,6 @@ (function (undefined) {

it('normalizes â', function () {
assert.strictEqual(normalizeForSearch('â'), 'a');
});
it('normalizes ö', function () {

@@ -37,2 +41,6 @@ assert.strictEqual(normalizeForSearch('ö'), 'oe');

it('normalizes è', function () {
assert.strictEqual(normalizeForSearch('è'), 'e');
});
it('satisfies the end-to-end test from the README', function () {

@@ -39,0 +47,0 @@ assert.strictEqual(

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