From a65c1aaf3afe21a34cae7b4ad266a6f2723704d1 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 19 Mar 2014 09:25:40 -0700 Subject: npm: upgrade to 1.4.6 --- deps/npm/node_modules/path-is-inside/lib/path-is-inside.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'deps/npm/node_modules/path-is-inside/lib/path-is-inside.js') diff --git a/deps/npm/node_modules/path-is-inside/lib/path-is-inside.js b/deps/npm/node_modules/path-is-inside/lib/path-is-inside.js index 5d1160e57..596dfd3b3 100644 --- a/deps/npm/node_modules/path-is-inside/lib/path-is-inside.js +++ b/deps/npm/node_modules/path-is-inside/lib/path-is-inside.js @@ -13,7 +13,11 @@ module.exports = function (thePath, potentialParent) { potentialParent = potentialParent.toLowerCase(); } - return thePath.indexOf(potentialParent) === 0; + return thePath.lastIndexOf(potentialParent, 0) === 0 && + ( + thePath[potentialParent.length] === path.sep || + thePath[potentialParent.length] === undefined + ); }; function stripTrailingSep(thePath) { -- cgit v1.2.1