trie-search
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -6,3 +6,3 @@ { | ||
"description": "A trie implementation that maps keys to objects for rapid retrieval by phrases. Most common use will be for typeahead searches.", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "url": "https://github.com/joshjung/trie-search", |
@@ -168,4 +168,4 @@ var HashArray = require('hasharray'); | ||
var phrases = key.split(this.options.splitOnRegEx); | ||
var emptySplitMatch = phrases.filter(p => IS_WHITESPACE.test(p)); | ||
var selfMatch = phrases.filter(p => p === key); | ||
var emptySplitMatch = phrases.filter(function(p) { return IS_WHITESPACE.test(p); }); | ||
var selfMatch = phrases.filter(function(p) { return p === key; }); | ||
var selfIsOnlyMatch = selfMatch.length + emptySplitMatch.length === phrases.length; | ||
@@ -172,0 +172,0 @@ |
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
9008359