Skip to content

Commit

Permalink
fix regex to include non-numeric (#8692)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Jan 7, 2025
1 parent ddc3192 commit f3a8df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release/poll-npm-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ async function pollNpmPublish() {
reject(error);
}
const version = stdout.trim();
if (!version.match(/^\d+\.\d+\.\d+$/)) {
if (!version.match(/^\d+(\.[-\d\w]+)+$/)) {
reject(
new Error(
`npm view did not return a valid semver version. Received: ${version}`
`npm view did not return a valid tag. Received: ${version}`
)
);
}
Expand Down

0 comments on commit f3a8df7

Please sign in to comment.