From 9b42aedc376e245206e8f07b19ceb80a480a8f79 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sun, 30 Jun 2024 17:34:50 +0800 Subject: [PATCH] fix: avoid escaping unnecessary chars in HTML report suppression regexes (#6749) Signed-off-by: Chad Wilson --- core/src/main/resources/templates/htmlReport.vsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/resources/templates/htmlReport.vsl b/core/src/main/resources/templates/htmlReport.vsl index 62ee1e0d5e1..3dcb8e88994 100644 --- a/core/src/main/resources/templates/htmlReport.vsl +++ b/core/src/main/resources/templates/htmlReport.vsl @@ -152,7 +152,7 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. } } function escapeRegExp(text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); + return text.replace(/[[\]{}()*+?.\\^$|\s]/g, '\\$&'); } function setCopyText(name, matchType, matchValue, suppressType, suppressVal) { xml = '\n';