Skip to content

Commit

Permalink
fix: avoid escaping unnecessary chars in HTML report suppression rege…
Browse files Browse the repository at this point in the history
…xes (#6749)

Signed-off-by: Chad Wilson <[email protected]>
  • Loading branch information
chadlwilson authored Jun 30, 2024
1 parent fff64eb commit 9b42aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/resources/templates/htmlReport.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<suppress>\n';
Expand Down

0 comments on commit 9b42aed

Please sign in to comment.