diff --git a/lib/find-file.js b/lib/find-file.js index 687b51d..84b2a07 100644 --- a/lib/find-file.js +++ b/lib/find-file.js @@ -46,8 +46,8 @@ function findFile(opt) { // ensure we have some limit to the search limit = limit && path.resolve(limit) || process.cwd(); - // ignore data uris and ensure we are at a valid start path - var absoluteStart = !(/^data\:/.test(uri)) && path.resolve(startPath); + // ignore explicit uris data|http|https and ensure we are at a valid start path + var absoluteStart = !(/^(data|https?):/.test(uri)) && path.resolve(startPath); if (absoluteStart) { // find path to the root, stopping at cwd, package.json or bower.json