From 52fd76e12e7edce24481b2637e961ff5d2ee27ff Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 31 Aug 2022 17:34:15 +0100 Subject: [PATCH] Apply global flag to comment regexes So it catches all comments and not just the first --- src/changes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/changes.ts b/src/changes.ts index 49b4648..c3fe168 100644 --- a/src/changes.ts +++ b/src/changes.ts @@ -36,8 +36,8 @@ const ISSUE_URL_REGEXP = const MERGE_COMMIT_REGEX = /Merge pull request #(\d+) from (.*)/; -const COMMENT_REGEXP = //s; -const MAGIC_COMMENT_REGEXP = /(.*)/s; +const COMMENT_REGEXP = //gs; +const MAGIC_COMMENT_REGEXP = /(.*)/gs; export enum ChangeType { FEATURE,