Skip to content

Commit 2956b08

Browse files
committed
fix: sonar
1 parent ff4fd6c commit 2956b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/markdown-toc-generator/markdown-toc-generator.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function stripHtmlTags(text: string) {
2222
}
2323

2424
function stripMarkdownLinks(text: string, replacement: string = '$1') {
25-
return text.replace(/\[([^\]]*)\]\([^\)]*\)/g, replacement);
25+
return text.replace(/\[([^\]]*)\]\([^\)]*\)/g, replacement); // NOSONAR
2626
};
2727

2828
function concatDashes(text: string) {
@@ -81,7 +81,7 @@ function getTitles(markdown: string, idGenerator: (titleMarkdownContent: string)
8181
return '';
8282
});
8383

84-
[...markdown.matchAll(/^(#+)(.*$)/mg)].forEach(
84+
[...markdown.matchAll(/^(#+)(.*$)/mg)].forEach( // NOSONAR
8585
([match, levelString, titleContent]) => {
8686
const level = levelString.length;
8787

0 commit comments

Comments
 (0)