Skip to content

Commit

Permalink
Be better at finding rootUrl in non-file input urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Aug 18, 2015
1 parent cb6950d commit d66bcf0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/hyperlink
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ if (commandLineOptions._.length > 0) {
return urlTools.urlOrFsPathToUrl(String(urlOrFsPath), false);
});
if (!rootUrl) {
rootUrl = urlTools.findCommonUrlPrefix(inputUrls.filter(function (inputUrl) {
return (/^file:/).test(inputUrl);
}));
rootUrl = urlTools.findCommonUrlPrefix(inputUrls);
if (rootUrl) {
console.error('Guessing --root from input files: ' + rootUrl);
}
Expand Down

0 comments on commit d66bcf0

Please sign in to comment.