Skip to content

Commit

Permalink
fix(js): semver regex update (#10416)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Jun 4, 2022
1 parent 5daeaf8 commit c0a0f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/utils/minimal-publish-script.ts
Expand Up @@ -27,7 +27,7 @@ function invariant(condition, message) {
const [, , name, version, tag = 'next'] = process.argv;
// A simple SemVer validation to validate the version
const validVersion = /^\\d+\\.\\d+\\.\\d(-\\w+\\.\\d+)?/;
const validVersion = /^\\d+\\.\\d+\\.\\d+(-\\w+\\.\\d+)?/;
invariant(
version && validVersion.test(version),
\`No version provided or version did not match Semantic Versioning, expected: #.#.#-tag.# or #.#.#, got \${version}.\`
Expand Down

0 comments on commit c0a0f16

Please sign in to comment.