Fixed the typo in 's semver regex
This commit is contained in:
parent
fee173d09f
commit
8aaf3ce379
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ const packagesWhoseVersionsShouldBump = [
|
|||
`You need to specify a version, like: $ yarn deploy 1.2.0-rc.4`,
|
||||
)
|
||||
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}`)
|
||||
process.exit(1)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue