diff --git a/commitlint/helpers.ts b/commitlint/helpers.ts index f6d886b6..3134e621 100644 --- a/commitlint/helpers.ts +++ b/commitlint/helpers.ts @@ -221,7 +221,7 @@ export abstract class Helpers { } public static removeAllCodeBlocks(text: string) { - return text.replace(/```[^]*```/g, ""); + return text.replace(/```[\s\S]*?```/g, ""); } public static splitByEOLs(text: string, numberOfEols: number) {