Comparing version 0.1.1 to 0.1.2
@@ -29,4 +29,4 @@ 'use strict'; | ||
var pathFromError = err.message.match(/'.*?'/)[0]; | ||
var fittingIndex = err.message.indexOf(fittingDef.name); | ||
if (err.message[fittingIndex - 1] === path.sep && err.message[fittingDef.name.length] !== path.sep) { | ||
var split = pathFromError.split(path.sep); | ||
if (split[split.length - 1] === fittingDef.name + "'") { | ||
debug('no user fitting %s in %s', fittingDef.name, dir); | ||
@@ -33,0 +33,0 @@ } else { |
{ | ||
"name": "bagpipes", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Less code, more flow. Let's dance!", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
45035