Skip to content

Commit

Permalink
fix: sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
sharevb committed Dec 15, 2024
1 parent 3f7745d commit 8371d20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function stripHtmlTags(text: string) {
}

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

function concatDashes(text: string) {
Expand Down Expand Up @@ -81,7 +81,7 @@ function getTitles(markdown: string, idGenerator: (titleMarkdownContent: string)
return '';
});

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

Expand Down

0 comments on commit 8371d20

Please sign in to comment.