mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix: sonar
This commit is contained in:
1 parent
ff4fd6c65c
commit
2956b08766
1 file changed
+2
-2
@@ -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) {
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user