From a40b038d6e9200afdf827f4a121b392f7cb0be60 Mon Sep 17 00:00:00 2001 From: sniedzielski <52816247+sniedzielski@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:44:30 +0200 Subject: [PATCH] CQI-96: fixed regex processing to satisfy security requirements (#87) --- src/components/UserSearcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UserSearcher.js b/src/components/UserSearcher.js index 89ca6b2..81a2e77 100644 --- a/src/components/UserSearcher.js +++ b/src/components/UserSearcher.js @@ -183,7 +183,7 @@ class UserSearcher extends Component { errorItems={errorUsers} contributionKey={USER_SEARCHER_CONTRIBUTION_KEY} tableTitle={formatMessageWithValues(intl, "admin.user", "userSummaries", { - count: usersPageInfo.totalCount?.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","), + count: usersPageInfo.totalCount?.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,"), })} fetch={this.fetch} rowIdentifier={(r) => r.uuid}