fix: Commit message regex missing some valid messages

This commit is contained in:
Ardalan Amini committed 2022-05-30 15:21:00 +04:30
1 parent 384d115e50
commit ab90235314
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import type { GitHub } from "@actions/github/lib/utils";
import type { SemVer } from "semver";
export const COMMIT_REGEX =
/^(?<type>[^)]*)(?:\((?<category>[^)]*?)\)|): *(?<title>.+?) *(?:\(#(?<pr>[1-9]\d*?)\)|) *(?:\[(?<flag>[^\]]+?)]|)\s*$/;
/^(?<type>[^:()]*)(?:\((?<category>[^()]*?)\)|): *(?<title>.+?) *(?:\(#(?<pr>[1-9]\d*?)\)|) *(?:\[(?<flag>[^[\]]*?)]|)\s*$/;
export interface TypesI {
[type: string]: string;