Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit aa3d937

Browse files
authored
feat: Allow running from file:// and ftp(s):// (#41)
1 parent f9abda5 commit aa3d937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports.parseUrl = function parseUrl(url) {
2-
if (url.substr(0,4) !== 'http') {
2+
if (!/[a-z]+:\/\//.test(url)) {
33
return 'http://' + url;
44
}
55
return url;

0 commit comments

Comments
 (0)