trie-search
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -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.1", | ||
"version": "1.2.2", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "url": "https://github.com/joshjung/trie-search", |
@@ -88,3 +88,3 @@ var HashArray = require('hasharray'); | ||
for (let v = 0; v < expandedValues.length; v++) { | ||
for (var v = 0; v < expandedValues.length; v++) { | ||
var expandedValue = expandedValues[v]; | ||
@@ -114,8 +114,8 @@ | ||
if (this.options.expandRegexes && this.options.expandRegexes.length) { | ||
for (let i = 0; i < this.options.expandRegexes.length; i++) { | ||
for (var i = 0; i < this.options.expandRegexes.length; i++) { | ||
var er = this.options.expandRegexes[i]; | ||
let match; | ||
var match; | ||
while((match = er.regex.exec(value)) !== null) { | ||
let alternateValue = value.replaceCharAt(match.index, er.alternate); | ||
var alternateValue = value.replaceCharAt(match.index, er.alternate); | ||
values.push(alternateValue); | ||
@@ -122,0 +122,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