Comparing version 0.1.2 to 0.1.3
@@ -18,3 +18,3 @@ { | ||
"main": "patrun.js", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"scripts": { | ||
@@ -21,0 +21,0 @@ "test": "./node_modules/.bin/jasmine-node ./test", |
@@ -91,3 +91,7 @@ /* Copyright (c) 2013 Richard Rodger, MIT License, https://github.com/rjrodger/patrun */ | ||
self.find = function( pat ) { | ||
self.findexact = function( pat ) { | ||
return self.find( pat, true ) | ||
} | ||
self.find = function( pat, exact ) { | ||
var keymap = top | ||
@@ -97,2 +101,3 @@ var data = null | ||
var stars = [] | ||
var foundkeys = {} | ||
@@ -105,2 +110,4 @@ do { | ||
if( nextkeymap ) { | ||
foundkeys[key]=true | ||
if( keymap.s ) { | ||
@@ -132,2 +139,6 @@ stars.push(keymap.s) | ||
if( exact && _.keys(foundkeys).length != _.keys(pat).length ) { | ||
data = null | ||
} | ||
return data | ||
@@ -134,0 +145,0 @@ } |
@@ -35,3 +35,3 @@ # patrun | ||
Current Version: 0.1.2 | ||
Current Version: 0.1.3 | ||
@@ -38,0 +38,0 @@ Tested on: Node.js 0.10.19, Chrome 29 |
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
22859
255