Skip to content
Snippets Groups Projects
Commit 1bf409db authored by Fred Chasen's avatar Fred Chasen
Browse files

Merge branch 'master' into 'master'

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

Closes #12

See merge request tools/pagedjs-cli!9
parents 8ba147d6 e83f7919
No related branches found
No related tags found
1 merge request!9Fixed issue #12: URL input not being processed as URL
Pipeline #30153 passed with stages
in 1 minute and 59 seconds
...@@ -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