perf: 缩短"用户名校验"正则长度(#245)

This commit is contained in:
Russell 2022-11-07 11:36:43 +08:00
parent bd26e0f450
commit 2cd6b6935f

View File

@ -317,7 +317,7 @@ module.exports = [{
},
{
title: '用户名校验4到16位字母数字下划线减号',
rule: /^[a-zA-Z0-9_-]{4,16}$/,
rule: /^[\w-]{4,16}$/,
examples: ['xiaohua_qq']
},
{