Skip to content

Commit

Permalink
fix(join): add compiled js
Browse files Browse the repository at this point in the history
  • Loading branch information
escaped committed Apr 30, 2015
1 parent 3e7ed20 commit 4662045
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ define(['exports'], function (exports) {
}

urlPrefix = path1.indexOf('//') === 0 ? '//' : path1.indexOf('/') === 0 ? '/' : '';
trailingSlash = path2.slice(-1) == '/' ? '/' : '';

url1 = path1.split('/');
url2 = path2.split('/');
Expand All @@ -80,7 +81,7 @@ define(['exports'], function (exports) {
}
}

return urlPrefix + url3.join('/').replace(/\:\//g, '://');;
return urlPrefix + url3.join('/').replace(/\:\//g, '://') + trailingSlash;
}

var r20 = /%20/g,
Expand Down Expand Up @@ -133,4 +134,4 @@ define(['exports'], function (exports) {
add(prefix, obj);
}
}
});
});
5 changes: 3 additions & 2 deletions dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function join(path1, path2) {
}

urlPrefix = path1.indexOf('//') === 0 ? '//' : path1.indexOf('/') === 0 ? '/' : '';
trailingSlash = path2.slice(-1) == '/' ? '/' : '';

url1 = path1.split('/');
url2 = path2.split('/');
Expand All @@ -79,7 +80,7 @@ function join(path1, path2) {
}
}

return urlPrefix + url3.join('/').replace(/\:\//g, '://');;
return urlPrefix + url3.join('/').replace(/\:\//g, '://') + trailingSlash;
}

var r20 = /%20/g,
Expand Down Expand Up @@ -131,4 +132,4 @@ function _buildQueryString(prefix, obj, traditional, add) {
} else {
add(prefix, obj);
}
}
}
3 changes: 2 additions & 1 deletion dist/es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function join(path1, path2) {

urlPrefix = path1.indexOf('//') === 0 ? '//' :
path1.indexOf('/') === 0 ? '/' : '';
trailingSlash = path2.slice(-1) == '/' ? '/' : '';

url1 = path1.split('/');
url2 = path2.split('/');
Expand All @@ -82,7 +83,7 @@ export function join(path1, path2) {
}
}

return urlPrefix + url3.join('/').replace(/\:\//g, '://');;
return urlPrefix + url3.join('/').replace(/\:\//g, '://') + trailingSlash;
}

var r20 = /%20/g,
Expand Down
3 changes: 2 additions & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ System.register([], function (_export) {
}

urlPrefix = path1.indexOf('//') === 0 ? '//' : path1.indexOf('/') === 0 ? '/' : '';
trailingSlash = path2.slice(-1) == '/' ? '/' : '';

url1 = path1.split('/');
url2 = path2.split('/');
Expand All @@ -80,7 +81,7 @@ System.register([], function (_export) {
}
}

return urlPrefix + url3.join('/').replace(/\:\//g, '://');;
return urlPrefix + url3.join('/').replace(/\:\//g, '://') + trailingSlash;
}

function type(obj) {
Expand Down

0 comments on commit 4662045

Please sign in to comment.