We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c693a3 commit 1b6acb7Copy full SHA for 1b6acb7
1 file changed
webfe/package_vue/src/views/dev-center/app/engine/cloud-deployment/deploy-network/config-item.vue
@@ -411,17 +411,12 @@ export default {
411
message: this.$t('该字段是必填项'),
412
trigger: 'blur',
413
},
414
- {
415
- max: 16,
416
- message: this.$t('请输入 3-16 字符的小写字母、数字、连字符(-),以小写字母开头'),
417
- trigger: 'blur',
418
- },
419
{
420
validator(val) {
421
- const reg = /^[a-z][a-z0-9-]*$/;
+ const reg = /^[a-z][a-z0-9_-]{2,15}$/;
422
return reg.test(val);
423
424
- message: this.$t('格式不正确,只能包含:小写字母、数字、连字符(-),首字母必须是字母'),
+ message: this.$t('只允许小写字母、数字、连字符(-)和下划线(_),以字母开头,长度3-16个字符'),
425
426
427
],
0 commit comments