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

trie-search

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trie-search - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json

@@ -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 @@ }

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