From ca3b4b02e0d7ab46b1cf7f5f4a169433d567cf9f Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 30 May 2023 16:24:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E7=9A=84=E9=BB=98=E8=AE=A4=E6=96=87=E6=A1=A3=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=AD=90=E7=9B=AE=E5=BD=95=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98=20(#1194)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/720 --- frontend/src/global/form-rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 5b9ccce20..1150d66d6 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -244,7 +244,7 @@ const checkDoc = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.nginxDoc'))); } else { - const reg = /^[A-Za-z0-9\n.]+$/; + const reg = /^[A-Za-z0-9\n./]+$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.nginxDoc'))); } else {