Comparing version 2.0.0 to 2.0.1
@@ -85,8 +85,8 @@ 'use strict'; | ||
const matches = []; | ||
for (let last = start; last !== -1 && last < haystack.length;) { | ||
for (let i = start; i !== -1 && i < haystack.length;) { | ||
last = exports.horspool(haystack, needle, last); | ||
if (last !== -1) { | ||
matches.push(last); | ||
last += needle.length; | ||
i = exports.horspool(haystack, needle, i); | ||
if (i !== -1) { | ||
matches.push(i); | ||
i += needle.length; | ||
} | ||
@@ -93,0 +93,0 @@ } |
{ | ||
"name": "nigel", | ||
"description": "BoyerMooreHorspool algorithms", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": "git://github.com/hapijs/nigel", | ||
@@ -18,3 +18,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"hoek": "3.x.x", | ||
"hoek": "4.x.x", | ||
"vise": "2.x.x" | ||
@@ -24,3 +24,3 @@ }, | ||
"code": "2.x.x", | ||
"lab": "7.x.x" | ||
"lab": "10.x.x" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
@@ -5,4 +5,4 @@ #nigel | ||
[![Build Status](https://secure.travis-ci.org/hapijs/nigel.png)](http://travis-ci.org/hapijs/nigel) | ||
[![Build Status](https://secure.travis-ci.org/hapijs/nigel.svg)](http://travis-ci.org/hapijs/nigel) | ||
Lead Maintainer - [Eran Hammer](https://github.com/hueniverse) |
Sorry, the diff of this file is not supported yet
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
22621
- Removedhoek@3.0.4(transitive)
Updatedhoek@4.x.x