Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
Fix #17
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurbergmz committed Aug 9, 2017
1 parent d3a9f0f commit b874f6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ function joinURI() {
arr[_key] = arguments[_key];
}

return normalizeURI(arr.join('/'));
var join = arr.join('/');
return normalizeURI(join[0] === '/' ? join.substring(1) : join);
}

function normalizeURI(uri) {
Expand Down
3 changes: 2 additions & 1 deletion src/URI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export function joinURI (...arr) {
return normalizeURI(arr.join('/'))
const join = arr.join('/')
return normalizeURI(join[0] === '/' ? join.substring(1) : join)
}

export function normalizeURI (uri) {
Expand Down

0 comments on commit b874f6b

Please sign in to comment.