From 2392f9156792975f0019dd9d742435c3b80f6568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Tue, 7 Jan 2025 12:01:33 +0800 Subject: [PATCH] feat: Panel aliases support common special characters (#7654) Refs #6909 --- frontend/src/views/setting/panel/name/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/setting/panel/name/index.vue b/frontend/src/views/setting/panel/name/index.vue index 3f957efcb..951fcea50 100644 --- a/frontend/src/views/setting/panel/name/index.vue +++ b/frontend/src/views/setting/panel/name/index.vue @@ -67,7 +67,7 @@ function checkPanelName(rule: any, value: any, callback: any) { if (value === '') { return callback(new Error(i18n.global.t('setting.titleHelper'))); } - const reg = /^[a-zA-Z0-9\u4e00-\u9fa5]{1}[a-zA-Z0-9_ .\u4e00-\u9fa5-]{2,29}$/; + const reg = /^[a-zA-Z0-9\u4e00-\u9fa5 .,:!@#%&^*_+[\]{}~\-=?,。!|?:;「」『』【】()《》·]{3,30}$/; if (!reg.test(value)) { return callback(new Error(i18n.global.t('setting.titleHelper'))); }