We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d848cb commit d5ac706Copy full SHA for d5ac706
dist/index.js
@@ -5420,7 +5420,7 @@ exports.NpmModuleVersion = void 0;
5420
var NpmModuleVersion;
5421
(function (NpmModuleVersion) {
5422
function parse(versionStr) {
5423
- const match = versionStr.match(/^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-rc.([0-9]+))?/);
+ const match = versionStr.match(/^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-rc.([0-9]+))?$/);
5424
if (!match) {
5425
throw new Error(`${versionStr} is not a valid NPM version`);
5426
}
0 commit comments