From 32c5a48911e7f43b3d9cccccd8e95c1212a30d40 Mon Sep 17 00:00:00 2001 From: Ian Liu <81595625+ianliuwk1019@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:59:07 -0800 Subject: [PATCH] fix: #374 code scanning alert (#730) Fix code scanning alert. --- admin/src/core/services/cognito.service.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/admin/src/core/services/cognito.service.ts b/admin/src/core/services/cognito.service.ts index f74b7ac4e..07726d761 100644 --- a/admin/src/core/services/cognito.service.ts +++ b/admin/src/core/services/cognito.service.ts @@ -67,7 +67,6 @@ export class CognitoService { private getParameterByName(name) { const url = window.location.href; - name = name.replace(/[\[\]]/g, "\\$&"); const regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"); const results = regex.exec(url); if (!results) {