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

fuzzyjs

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuzzyjs - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

test/issues/28.test.ts

14

dist/index.es5.js

@@ -17,13 +17,7 @@ /**

}
var reshapedQuery = query;
var reshapedSource = source;
var reshapedQuery = query.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
var reshapedSource = source.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
if (!opts.caseSensitive) {
reshapedQuery = query
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
reshapedSource = source
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
reshapedQuery = reshapedQuery.toLowerCase();
reshapedSource = reshapedSource.toLowerCase();
}

@@ -30,0 +24,0 @@ return [reshapedQuery, reshapedSource];

@@ -23,13 +23,7 @@ (function (global, factory) {

}
var reshapedQuery = query;
var reshapedSource = source;
var reshapedQuery = query.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
var reshapedSource = source.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
if (!opts.caseSensitive) {
reshapedQuery = query
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
reshapedSource = source
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
reshapedQuery = reshapedQuery.toLowerCase();
reshapedSource = reshapedSource.toLowerCase();
}

@@ -36,0 +30,0 @@ return [reshapedQuery, reshapedSource];

@@ -19,13 +19,7 @@ "use strict";

}
var reshapedQuery = query;
var reshapedSource = source;
var reshapedQuery = query.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
var reshapedSource = source.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
if (!opts.caseSensitive) {
reshapedQuery = query
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
reshapedSource = source
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '');
reshapedQuery = reshapedQuery.toLowerCase();
reshapedSource = reshapedSource.toLowerCase();
}

@@ -32,0 +26,0 @@ return [reshapedQuery, reshapedSource];

{
"name": "fuzzyjs",
"version": "4.0.2",
"version": "4.0.3",
"description": "Fuzzy matching in Javascript",

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

@@ -21,14 +21,8 @@ import { TestOptions } from '../test'

let reshapedQuery = query
let reshapedSource = source
let reshapedQuery = query.normalize('NFD').replace(/[\u0300-\u036f]/g, '')
let reshapedSource = source.normalize('NFD').replace(/[\u0300-\u036f]/g, '')
if (!opts.caseSensitive) {
reshapedQuery = query
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '')
reshapedSource = source
.toLowerCase()
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '')
reshapedQuery = reshapedQuery.toLowerCase()
reshapedSource = reshapedSource.toLowerCase()
}

@@ -35,0 +29,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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