We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 984491a commit bcd8849Copy full SHA for bcd8849
semver.js
@@ -314,9 +314,9 @@ function SemVer(version, loose) {
314
else
315
this.prerelease = m[4].split('.').map(function(id) {
316
if (/^[0-9]+$/.test(id)) {
317
- var num = +id
+ var num = +id;
318
if (num >= 0 && num < MAX_SAFE_INTEGER)
319
- return num
+ return num;
320
}
321
return id;
322
});
@@ -966,11 +966,11 @@ function replaceXRange(comp, loose) {
966
} else if (gtlt === '<=') {
967
// <=0.7.x is actually <0.8.0, since any 0.7.x should
968
// pass. Similarly, <=7.x is actually <8.0.0, etc.
969
- gtlt = '<'
+ gtlt = '<';
970
if (xm)
971
- M = +M + 1
+ M = +M + 1;
972
973
- m = +m + 1
+ m = +m + 1;
974
975
976
ret = gtlt + M + '.' + m + '.' + p;
0 commit comments