Skip to content

Commit 001a2b4

Browse files
hugohezelmshriver
authored andcommitted
fix(IQE-3502): Be able to trim slashes from both begging and end in URL building
1 parent 2095e1a commit 001a2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/services/http.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { AuthService } from './auth';
33

44
const trim = (string) => {
55
if (string.startsWith('/')) {
6-
return string.slice(1);
6+
string = string.slice(1);
77
}
88
if (string.endsWith('/')) {
9-
return string.slice(0, -1);
9+
string = string.slice(0, -1);
1010
}
1111
return string;
1212
};

0 commit comments

Comments
 (0)