fix(接口测试): 环境host域名长度限制增大

This commit is contained in:
chenjianxing 2020-11-23 09:46:09 +08:00
parent 6d3b3ccfa4
commit ab87a73602
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 419c75bca64b7c5bfbd1194d7f0fd9919f0caa04 Subproject commit 57d6f78efa4b0300be188e8b024511ceef0873ed

View File

@ -118,7 +118,7 @@
validateDomain(domain) { validateDomain(domain) {
let strRegex = "^(?=^.{3,255}$)(http(s)?:\\/\\/)?(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(\\/\\w+\\.\\w+)*$"; let strRegex = "^(?=^.{3,255}$)(http(s)?:\\/\\/)?(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(\\/\\w+\\.\\w+)*$";
const re = new RegExp(strRegex); const re = new RegExp(strRegex);
if (re.test(domain) && domain.length < 26) { if (re.test(domain) && domain.length < 67) {
return true; return true;
} }
this.$warning(this.$t('load_test.input_domain')); this.$warning(this.$t('load_test.input_domain'));

@ -1 +1 @@
Subproject commit 33bbdb3f528c914bf333b2c1839dd6d3bbd9b569 Subproject commit 71d57ae5d7f8bb5c93a29504ac6f2300dc189ce9