perf: update reg for username

pull/868/head
Ryan Wang 2023-02-21 10:27:05 +08:00
parent 71d68d3732
commit 22e79fa662
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ const handleCreateUser = async () => {
['length:0,50'],
[
'matches',
/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-\_]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/,
/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
],
]"
:validation-messages="{