From 72f1570b7f195d0f4fbb2cd2977bcb7333802e78 Mon Sep 17 00:00:00 2001 From: Ruslan Bayandinov <45530296+wazsone@users.noreply.github.com> Date: Wed, 17 May 2023 12:09:32 +0700 Subject: [PATCH] [UBER-118] Forbid unwanted symbols in a workspace name (#3197) Signed-off-by: Ruslan Bayandinov --- plugins/login-assets/lang/en.json | 2 +- plugins/login-assets/lang/ru.json | 2 +- .../login-resources/src/components/CreateWorkspaceForm.svelte | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/login-assets/lang/en.json b/plugins/login-assets/lang/en.json index f38bb7455d..8b43bd8f36 100644 --- a/plugins/login-assets/lang/en.json +++ b/plugins/login-assets/lang/en.json @@ -27,7 +27,7 @@ "WantAnotherWorkspace": "Want to create another workspace?", "ChangeAccount": "Change account", "NotSeeingWorkspace": "Not seeing your workspace?", - "WorkspaceNameRule": "The workspace name can contains lowercase letters, numbers, and symbols !@#%&^-", + "WorkspaceNameRule": "The workspace name can contain lowercase letters, numbers and symbol -", "ForgotPassword": "Forgot your password?", "KnowPassword": "Know your password?", "Recover": "Recover", diff --git a/plugins/login-assets/lang/ru.json b/plugins/login-assets/lang/ru.json index 9f2010dcef..6774a15a73 100644 --- a/plugins/login-assets/lang/ru.json +++ b/plugins/login-assets/lang/ru.json @@ -27,7 +27,7 @@ "WantAnotherWorkspace": "Хотите создать другое рабочее пространство?", "ChangeAccount": "Сменить пользователя", "NotSeeingWorkspace": "Не видите ваше рабочее пространство?", - "WorkspaceNameRule": "Название рабочего пространства должно состояить из строчных латинских букв, цифр и символов !@#%&^-", + "WorkspaceNameRule": "Название рабочего пространства должно состояить из строчных латинских букв, цифр и символа -", "ForgotPassword": "Забыли пароль?", "KnowPassword": "Знаете пароль?", "Recover": "Восстановить", diff --git a/plugins/login-resources/src/components/CreateWorkspaceForm.svelte b/plugins/login-resources/src/components/CreateWorkspaceForm.svelte index 8ee229bc8e..0af2b0245d 100644 --- a/plugins/login-resources/src/components/CreateWorkspaceForm.svelte +++ b/plugins/login-resources/src/components/CreateWorkspaceForm.svelte @@ -27,7 +27,7 @@ { name: 'workspace', i18n: login.string.Workspace, - rule: /^[0-9a-z#%&^\-!)(]{3,63}$/, + rule: /^[0-9a-z\-)(]{3,63}$/, ruleDescr: login.string.WorkspaceNameRule } ]