Skip to content

Commit b47cbba

Browse files
fix(sonar): regex is never reassigned use const instead
1 parent 529aa29 commit b47cbba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/common/utils.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export function getUrlParameters(
2828
if (url === null) {
2929
return null;
3030
}
31-
let regex = /[?&]([^=#]+)=([^&#]*)/g,
32-
params = {},
33-
match;
31+
const regex = /[?&]([^=#]+)=([^&#]*)/g;
32+
const params = {};
33+
let match;
3434
while ((match = regex.exec(url))) {
3535
if (match[1] !== null) {
3636
//@ts-ignore

0 commit comments

Comments
 (0)