Fixed the typo in 's semver regex

This commit is contained in:
Aria Minaei 2021-08-07 23:39:27 +02:00
parent fee173d09f
commit 8aaf3ce379

View file

@ -50,7 +50,7 @@ const packagesWhoseVersionsShouldBump = [
`You need to specify a version, like: $ yarn deploy 1.2.0-rc.4`, `You need to specify a version, like: $ yarn deploy 1.2.0-rc.4`,
) )
process.exit(1) process.exit(1)
} else if (!version.match(/^[0-9]+\.[0-9]+\.[0-9]+(\-(dev|rc)\.[0-9])?$/)) { } else if (!version.match(/^[0-9]+\.[0-9]+\.[0-9]+(\-(dev|rc)\.[0-9]+)?$/)) {
console.error(`Use a semver version, like 1.2.3-rc.4. Provided: ${version}`) console.error(`Use a semver version, like 1.2.3-rc.4. Provided: ${version}`)
process.exit(1) process.exit(1)
} }