Skip to content

Commit 730f700

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
added test case and updated logic
1 parent 19041c2 commit 730f700

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libs/url/builder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const customEncodeURIComponent = (str: string) => {
3333
const parts = str.includes("?") ? str.split("?")[0] : str;
3434
const segments = parts.split("/");
3535
const encodedSegments = segments.map((segment) => {
36-
if (segment === "/") return "/";
3736
if(segment.includes('https:') || segment.includes('http:') || segment.includes('tr:'))
3837
return segment;
3938
return encodeURIComponent(segment);

0 commit comments

Comments
 (0)