change regexp of validating cluster endpoint

This commit is contained in:
liugq 2021-11-23 17:50:20 +08:00
parent e6c8216d7b
commit f66adcdcea
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export class InitialStep extends React.Component {
rules: [
{
type: "string",
pattern: /^[\w\.\-_~%]+\:\d+$/, //(https?:\/\/)?
pattern: /^[\w\.\-_~%]+(\:\d+)?$/, //(https?:\/\/)?
message: "请输入域名或 IP 地址和端口号",
},
{