From 8aaf3ce379cc2d160b84af7356e4b989d790560c Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sat, 7 Aug 2021 23:39:27 +0200 Subject: [PATCH] Fixed the typo in 's semver regex --- devEnv/deploy.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devEnv/deploy.mjs b/devEnv/deploy.mjs index f9c73a8..def442a 100644 --- a/devEnv/deploy.mjs +++ b/devEnv/deploy.mjs @@ -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) }