Skip to content

Commit 57862b0

Browse files
committed
fix(spec): update regex for nickname
1 parent e101252 commit 57862b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/restapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"validators":[
126126
{"name":"maxLength","value":20},
127127
{"name":"minLength","value":3},
128-
{"name":"pattern","value":"^([^\\s]+?\\s?[^\\s]+?)+?$"}
128+
{"name":"pattern","value":"^[^\\s].{1,18}[^\\s]$"}
129129
]
130130
},{
131131
"name":"password",

0 commit comments

Comments
 (0)