mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-11 17:15:44 +08:00
fix: 解决网站的默认文档不能设置为子目录的文件的问题 (#1194)
Refs https://github.com/1Panel-dev/1Panel/issues/720
This commit is contained in:
parent
34ac685e65
commit
ca3b4b02e0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue