Skip to content

Commit 7facbf0

Browse files
albsbzalbsbz
andauthored
th-128: + space support in name (#149)
Co-authored-by: albsbz <[email protected]>
1 parent 87f52f4 commit 7facbf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/packages/users/libs/validation-schemas/enums/user-validation-rule.enum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const UserValidationRule = {
22
PASSWORD: /^(?=.*[A-Za-z])(?=.*\d)[\dA-Za-z]{6,20}$/,
3-
NAME: /^['A-Za-z-]{1,40}$/,
3+
NAME: /^[A-Za-z][\s'A-Za-z-]{0,39}$/,
44
PHONE: /^\+\d{8,19}$/,
55
TAX_NUMBER: /^[\d\s./A-Z-]{8,19}$/,
66
COMPANY_NAME: /^[\s\w!#&'*+,.;?@~-]{1,40}$/,

0 commit comments

Comments
 (0)