Commit e83f7919 authored by Ben Davis's avatar Ben Davis
Browse files

Fixed issue #12: URL input not being processed as URL

parent 8ba147d6
......@@ -49,7 +49,7 @@ let dir = process.cwd();
let relativePath;
let allowLocal;
try {
new URL(input);
input = new URL(input);
allowLocal = false;
} catch (error) {
relativePath = path.resolve(dir, input);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment