mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix orderKey regexp
This commit is contained in:
@@ -228,7 +228,7 @@ exports.timeoutScaleFactor = timeoutScaleFactor;
|
||||
// the prerelease for a given release will sort before it. Because $ sorts
|
||||
// before '.', this means that 1.2 will sort before 1.2.3.)
|
||||
exports.defaultOrderKeyForReleaseVersion = function (v) {
|
||||
var m = v.match(/^(\d{1,4}(?:\.\d{1,4})*)(?:-([-A-za-z]{1,15})(\d{0,4}))?$/);
|
||||
var m = v.match(/^(\d{1,4}(?:\.\d{1,4})*)(?:-([-A-Za-z]{1,15})(\d{0,4}))?$/);
|
||||
if (!m)
|
||||
return null;
|
||||
var numberPart = m[1];
|
||||
|
||||
Reference in New Issue
Block a user