Skip to content

Commit

Permalink
fix: #374 code scanning alert (#730)
Browse files Browse the repository at this point in the history
Fix code scanning alert.
  • Loading branch information
ianliuwk1019 authored Dec 18, 2024
1 parent 417a644 commit 32c5a48
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion admin/src/core/services/cognito.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 32c5a48

Please sign in to comment.