mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
chore: 调整 isVariableName 变量规则 (#6190)
This commit is contained in:
parent
e90c4bf42b
commit
c448e56611
@ -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_]*$/
|
||||
);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user