mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-03 14:38:47 +00:00
fix: Commit message regex missing some valid messages
This commit is contained in:
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user