From f66adcdceacba1072d8e019ad947ab1d89978bc0 Mon Sep 17 00:00:00 2001 From: liugq Date: Tue, 23 Nov 2021 17:50:20 +0800 Subject: [PATCH] change regexp of validating cluster endpoint --- web/src/pages/System/Cluster/steps/initial_step.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/System/Cluster/steps/initial_step.js b/web/src/pages/System/Cluster/steps/initial_step.js index 76b38040..1bfc6b1e 100644 --- a/web/src/pages/System/Cluster/steps/initial_step.js +++ b/web/src/pages/System/Cluster/steps/initial_step.js @@ -41,7 +41,7 @@ export class InitialStep extends React.Component { rules: [ { type: "string", - pattern: /^[\w\.\-_~%]+\:\d+$/, //(https?:\/\/)? + pattern: /^[\w\.\-_~%]+(\:\d+)?$/, //(https?:\/\/)? message: "请输入域名或 IP 地址和端口号", }, {