From 2b5938738edd84e7c3db751a9cbbf97b71bff260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 9 Mar 2026 21:45:53 +0800 Subject: [PATCH] Fix isSafeTagId regex to allow hyphens, matching PerformancePage Co-Authored-By: Claude Opus 4.6 --- src/views/Compare/Dashboard/CompareDashboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Compare/Dashboard/CompareDashboard.vue b/src/views/Compare/Dashboard/CompareDashboard.vue index 36e96ee..162bc09 100644 --- a/src/views/Compare/Dashboard/CompareDashboard.vue +++ b/src/views/Compare/Dashboard/CompareDashboard.vue @@ -421,7 +421,7 @@ function handleClick(tagId) { * @returns {boolean} True if the tag ID is safe. */ function isSafeTagId(tagId) { - const pattern = /^#?[a-zA-Z0-9]*$/; + const pattern = /^#?[a-zA-Z0-9-]*$/; return pattern.test(tagId); }