Skip to content

Commit 4b7dec5

Browse files
author
danielntmd
committed
chore: single character url join
urlJoin now properly appends single characters
1 parent 30021e0 commit 4b7dec5

File tree

1 file changed

+1
-1
lines changed
  • yarn-project/foundation/src/string

1 file changed

+1
-1
lines changed

yarn-project/foundation/src/string/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function urlJoin(...args: string[]): string {
5858
end--;
5959
}
6060

61-
if (start < end) {
61+
if (start <= end) {
6262
processed.push(arg.slice(start, end + 1));
6363
}
6464
}

0 commit comments

Comments
 (0)