Fix username regex

This commit is contained in:
Piotr Rogowski 2022-10-18 13:54:27 +02:00
parent 959f898c5f
commit 99f36ed258
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ const REQUIRED_MESSAGE = 'This field is required';
const passwordPattern = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/;
const usernamePattern = /^[A-z][A-z0-9_\\-]{3,30}$/;
const usernamePattern = /^[A-Za-z0-9][\w\\-]{3,30}$/;
export const passwordRules: Rule[] = [
{ required: true },