Skip to content

Commit

Permalink
Merge pull request #35 from matrix-org/t3chguy-patch-1
Browse files Browse the repository at this point in the history
Apply global flag to comment regexes
  • Loading branch information
t3chguy committed Aug 31, 2022
2 parents fc80982 + 52fd76e commit f0cd8a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = /<!-- CHANGELOG_PREVIEW_START -->(.*)<!-- CHANGELOG_PREVIEW_END -->/s;
const COMMENT_REGEXP = /<!--(.*?)-->/gs;
const MAGIC_COMMENT_REGEXP = /<!-- CHANGELOG_PREVIEW_START -->(.*)<!-- CHANGELOG_PREVIEW_END -->/gs;

export enum ChangeType {
FEATURE,
Expand Down

0 comments on commit f0cd8a7

Please sign in to comment.