chore: 调整 isVariableName 变量规则 (#6190)

This commit is contained in:
liaoxuezhi 2023-02-15 20:31:26 +08:00 committed by GitHub
parent e90c4bf42b
commit c448e56611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,7 +440,7 @@ export const validations: {
return validations.matchRegexp(
values,
value,
regexp instanceof RegExp ? regexp : /^[a-zA-Z_]+[a-zA-Z0-9]*$/
regexp instanceof RegExp ? regexp : /^[a-zA-Z_]+[a-zA-Z0-9_]*$/
);
}
};