search-filterer
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -5,4 +5,10 @@ "use strict"; | ||
const distance = (string1, string2) => { | ||
const a = string1.trim().toLowerCase(); | ||
const b = string2.trim().toLowerCase(); | ||
const a = string1 | ||
.trim() | ||
.toLowerCase() | ||
.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); | ||
const b = string2 | ||
.trim() | ||
.toLowerCase() | ||
.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); | ||
if (!a.length || !b.length) { | ||
@@ -9,0 +15,0 @@ return Infinity; |
{ | ||
"name": "search-filterer", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "A curried memoized search library", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/amatthews4851/search-filterer", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11933
227
0