fix(commands): incorrect regex generation with specified scopes
This commit is contained in:
@@ -1,9 +1,3 @@
|
|||||||
{
|
{
|
||||||
"scopes": [
|
"scopes": ["commands", "changelog", "readme", "release", "config"]
|
||||||
"commands",
|
|
||||||
"changelog",
|
|
||||||
"readme",
|
|
||||||
"release",
|
|
||||||
"config"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ program
|
|||||||
config?.types?.map((type) => type.value).join("|") ||
|
config?.types?.map((type) => type.value).join("|") ||
|
||||||
"feat|fix|build|ci|docs|perf|refactor|chore"
|
"feat|fix|build|ci|docs|perf|refactor|chore"
|
||||||
})(\\((${
|
})(\\((${
|
||||||
config?.scopes ? [...config?.scopes, "release"] : "..*"
|
config?.scopes ? [...config?.scopes, "release"].join("|") : "..*"
|
||||||
})\\))?!?: .* ?(\\(..*\\))?((\n\n..*)?(\n\n..*)?)?`,
|
})\\))?!?: .* ?(\\(..*\\))?((\n\n..*)?(\n\n..*)?)?`,
|
||||||
"gm"
|
"gm"
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user