We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253427b commit 6a3b0ebCopy full SHA for 6a3b0eb
index.js
@@ -43,17 +43,9 @@ get(transform(arguments[2]));
43
function transform(filepath) {
44
var link = url.parse(filepath);
45
if (link.protocol) {
46
- if (link.pathname.charAt(0) == '/') {
47
- return link.protocol + "//" + link.host + link.pathname.slice(1);
48
- } else {
49
- return link.protocol + "//" + link.host + link.pathname;
50
- }
+ return link.protocol + "//" + link.host + link.pathname;
51
} else {
52
53
- return "http://" + link.pathname.slice(1);
54
55
- return "http://" + link.pathname;
56
+ return "http://" + link.pathname;
57
}
58
59
0 commit comments