From f3d4197e49915d3ba79ff4acc5faf30b15a11b2a Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Tue, 8 Feb 2022 19:17:40 +0500 Subject: [PATCH] =?UTF-8?q?=D0=91=D1=83=D0=BA=D0=B2=D0=B0=20=D0=81=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B2?= =?UTF-8?q?=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=86=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/validationRules.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/validationRules.ts b/src/utils/validationRules.ts index 474968d..9f300a4 100644 --- a/src/utils/validationRules.ts +++ b/src/utils/validationRules.ts @@ -9,7 +9,7 @@ const _min1: Rule = { export const min1: Rule[] = [_min1] export const createLoginRules: Rule[] = [_min1, { - pattern: /^\s*[A-Za-zА-Яа-я][А-Яа-я\w.-]+\s*$/, + pattern: /^\s*[A-zА-яЁё][A-zА-яЁё\w.-]+\s*$/, message: 'Логин должен начинаться с русской или латинской буквы и содержать только символы (А-яA-z0-9_-.)!' }] @@ -19,7 +19,7 @@ export const loginRules: Rule[] = [...createLoginRules, { }] export const nameRules: Rule[] = [_min1, { - pattern: /^[A-zА-я][A-zА-я-]*$/, + pattern: /^[A-zА-яЁё][A-zА-яЁё-]*$/, message: 'Допустимые символы: А-яA-z-', }]