From 8bfb7e4c8f05665c371a58ae51cac11fcc060174 Mon Sep 17 00:00:00 2001 From: Ian Liu Date: Mon, 16 Dec 2024 15:51:43 -0800 Subject: [PATCH] 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) {