fix: escaping

This commit is contained in:
Dom Light 2026-01-23 09:48:57 +00:00 committed by GitHub
parent f0e68a4f66
commit 36de0820fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ export class ActionConfig {
/** A string which indicates the flags used by the `majorPattern` regular expression. */
public majorFlags: string = "";
/** A string which, if present in a git commit, indicates that a change represents a minor (feature) change. Wrap with '/' to match using a regular expression. */
public minorPattern: string = "/^feat(\(.+\))?:/";
public minorPattern: string = "/^feat(\\(.+\\))?:/";
/** A string which indicates the flags used by the `minorPattern` regular expression. */
public minorFlags: string = "";
/** Pattern to use when formatting output version */

View file

@ -33,7 +33,7 @@ program
.option(
"-m, --minor-pattern <pattern>",
"Regex pattern for minor version bumps",
"/^feat(\(.+\))?:/",
"/^feat(\\(.+\\))?:/",
)
.option("--minor-flags <flags>", "Flags for minor pattern regex", "")
.option(