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 0.1.2 to 0.1.3

2

component.json
{
"name": "normalize-for-search",
"version": "0.1.2",
"version": "0.1.3",
"main": "src/normalize.js",

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

{
"name": "normalize-for-search",
"version": "0.1.2",
"version": "0.1.3",
"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",

@@ -45,2 +45,5 @@ (function (window, undefined) {

case "ß":
return "ss";
case "ё":

@@ -47,0 +50,0 @@ return "е";

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

it("normalizes ß", function () {
assert.strictEqual(normalizeForSearch("Straße"), "strasse");
});
it("normalizes ё", function () {

@@ -30,0 +34,0 @@ assert.strictEqual(normalizeForSearch("ё"), "е");

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