diff options
Diffstat (limited to 'node_modules/semver/classes')
-rw-r--r-- | node_modules/semver/classes/semver.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/semver/classes/semver.js b/node_modules/semver/classes/semver.js index ed81a7ec6..af6295519 100644 --- a/node_modules/semver/classes/semver.js +++ b/node_modules/semver/classes/semver.js @@ -265,7 +265,7 @@ class SemVer { if (identifier) { // 1.2.0-beta.1 bumps to 1.2.0-beta.2, // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { + if (compareIdentifiers(this.prerelease[0], identifier) === 0) { if (isNaN(this.prerelease[1])) { this.prerelease = [identifier, 0] } |