Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
skybird-trill authored Sep 26, 2016
1 parent 2916a62 commit cb5a3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function toURL(path, query) {
parsed.query = extend(parsed.query, query);
parsed.search = null;

if (['http:', 'https:', 'file:'].indexOf(parsed.protocol) > 0) {
if (['http:', 'https:', 'file:'].indexOf(parsed.protocol) > -1) {
return url.format(parsed);
} else {
return fileURL(url.format(parsed));
Expand Down

0 comments on commit cb5a3f2

Please sign in to comment.