Skip to content

Commit 4284c89

Browse files
committed
chore(scripts): fix markdown package version check
1 parent eccd5b7 commit 4284c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const argv = yargs(hideBin(process.argv))
5454
description: "Analysis to be performed",
5555
})
5656
.check(({ ref, on }) => {
57-
if (!/^v[0-9]+.[0-9]+.[0-9]+$|^master$/.test(ref)) {
57+
if (!/v[0-9]+.[0-9]+.[0-9]+(-(alpha|beta|rc)\.[0-9]+)*$/.test(ref)) {
5858
throw new Error(`Invalid Git reference '${ref}'`);
5959
}
6060
if (on.length === 0) {

0 commit comments

Comments
 (0)