Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 9b42aed

Browse files
authored
fix: avoid escaping unnecessary chars in HTML report suppression regexes (#6749)
Signed-off-by: Chad Wilson <[email protected]>
1 parent fff64eb commit 9b42aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/resources/templates/htmlReport.vsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved.
152152
}
153153
}
154154
function escapeRegExp(text) {
155-
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
155+
return text.replace(/[[\]{}()*+?.\\^$|\s]/g, '\\$&');
156156
}
157157
function setCopyText(name, matchType, matchValue, suppressType, suppressVal) {
158158
xml = '<suppress>\n';

0 commit comments

Comments
 (0)