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

Commit

Permalink
feat: Allow running from file:// and ftp(s):// (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers authored Oct 31, 2017
1 parent f9abda5 commit aa3d937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports.parseUrl = function parseUrl(url) {
if (url.substr(0,4) !== 'http') {
if (!/[a-z]+:\/\//.test(url)) {
return 'http://' + url;
}
return url;
Expand Down

0 comments on commit aa3d937

Please sign in to comment.