Skip to content

Commit

Permalink
Merge pull request #68 from bholloway/bugfix/explicit-uri
Browse files Browse the repository at this point in the history
exclude explicit http(s) URIs
  • Loading branch information
bholloway authored Oct 9, 2017
2 parents ad93a58 + 3a175a6 commit 2663031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/find-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2663031

Please sign in to comment.