Skip to content
Snippets Groups Projects
Commit e83f7919 authored by Ben Davis's avatar Ben Davis
Browse files

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

parent 8ba147d6
No related branches found
No related tags found
1 merge request!9Fixed issue #12: URL input not being processed as URL
...@@ -49,7 +49,7 @@ let dir = process.cwd(); ...@@ -49,7 +49,7 @@ let dir = process.cwd();
let relativePath; let relativePath;
let allowLocal; let allowLocal;
try { try {
new URL(input); input = new URL(input);
allowLocal = false; allowLocal = false;
} catch (error) { } catch (error) {
relativePath = path.resolve(dir, input); relativePath = path.resolve(dir, input);
......
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