Skip to content

Commit

Permalink
WIP: try replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Jan 16, 2024
1 parent 7ab64eb commit 274df0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commitlint/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 274df0b

Please sign in to comment.