diff --git a/commitlint/helpers.ts b/commitlint/helpers.ts index 5116f816..2e025aed 100644 --- a/commitlint/helpers.ts +++ b/commitlint/helpers.ts @@ -177,7 +177,7 @@ export abstract class Helpers { } public static removeAllCodeBlocks(text: string) { - return text.replace(/```[^]*```/g, ""); + return text.replaceAll(/```[^]*```/g, ""); } public static splitByEOLs(text: string, numberOfEols: number) {