From bf706f3a35d7647e7cbe0b0778ffcce1856d4fa8 Mon Sep 17 00:00:00 2001 From: Jordan Gerada <138688996+JordanGerada3@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:43:25 +0200 Subject: [PATCH] fix: update regex to allow special and umlaut characters (#167) https://github.com/eclipse-tractusx/portal-iam/issues/164 --------- Co-authored-by: Karsten Thiems <150006841+typecastcloud@users.noreply.github.com> --- .../keycloak-themes/catenax-central/login/resources/js/Main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import/keycloak-themes/catenax-central/login/resources/js/Main.js b/import/keycloak-themes/catenax-central/login/resources/js/Main.js index 856e2a39..93e7ad61 100644 --- a/import/keycloak-themes/catenax-central/login/resources/js/Main.js +++ b/import/keycloak-themes/catenax-central/login/resources/js/Main.js @@ -48,7 +48,7 @@ const N = (tag, c, att) => { return append(n, c) } const SEARCH_VALIDATION_REGEX = - /^[a-zA-Z0-9][a-zA-Z0-9 !#'$@&%()*+,\-_./:;=<>?[\]\\^]{0,255}$/ + /^[a-zA-ZÀ-ÿŚął\d][a-zA-ZÀ-ÿŚął\d !#'$@&%()*+,\-_./:;=<>?[\]\\^]{0,255}$/ const remove = (n) => n.parentElement.removeChild(n)