Comparing version 0.3.8 to 0.3.9
@@ -63,3 +63,3 @@ /*jslint node: true */ | ||
cover: { | ||
cmd: './node_modules/.bin/istanbul cover ./node_modules/.bin/grunt test' | ||
cmd: './node_modules/.bin/istanbul cover ./node_modules/.bin/grunt -- test' | ||
}, | ||
@@ -66,0 +66,0 @@ |
@@ -207,5 +207,25 @@ /** | ||
function forInRep(self, v, i, words, st) { | ||
var keys = Object.keys(st), j = 0, w = null; | ||
for (j = 0; j < keys.length; j += 1) | ||
{ | ||
w = keys[j]; | ||
if (w !== self._separator) | ||
{ | ||
for (j = i; j < words.length; j += 1) | ||
{ | ||
v = self._match(v, j, words, st); | ||
} | ||
break; | ||
} | ||
} | ||
return v; | ||
} | ||
Qlobber.prototype._match = function (v, i, words, sub_trie) | ||
{ | ||
var word, st, w, j; | ||
var word, st; | ||
@@ -218,17 +238,4 @@ st = sub_trie[this._wildcard_some]; | ||
/*jslint forin: true */ | ||
for (w in st) | ||
{ | ||
if (w !== this._separator) | ||
{ | ||
for (j = i; j < words.length; j += 1) | ||
{ | ||
v = this._match(v, j, words, st); | ||
} | ||
v = forInRep(this, v, i, words, st); | ||
break; | ||
} | ||
} | ||
/*jslint forin: false */ | ||
v = this._match(v, words.length, words, st); | ||
@@ -235,0 +242,0 @@ } |
{ | ||
"name": "qlobber", | ||
"description": "Node.js globbing for amqp-like topics", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"homepage": "https://github.com/davedoesdev/qlobber", | ||
@@ -49,5 +49,5 @@ "author": { | ||
"grunt-exec": "~0.4.2", | ||
"coveralls": "~2.0.16", | ||
"b": "git://github.com/vesln/b.git" | ||
"coveralls": "~2.8.0", | ||
"b": "git://github.com/davedoesdev/b.git" | ||
} | ||
} |
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
172091
771