fix: fix branch type regexp to handle version with multiple digits

This commit is contained in:
Pierre Vanduynslager
2018-12-13 15:32:07 -05:00
parent 5d99e02254
commit 52ca0b391c
2 changed files with 15 additions and 2 deletions
+2 -2
View File
@@ -23,11 +23,11 @@ function tagsToVersions(tags) {
}
function isMajorRange(range) {
return /^\d\.x(?:\.x)?$/i.test(range);
return /^\d+\.x(?:\.x)?$/i.test(range);
}
function isMaintenanceRange(range) {
return /^\d\.[\dx](?:\.x)?$/i.test(range);
return /^\d+\.(?:\d+|x)(?:\.x)?$/i.test(range);
}
function getUpperBound(range) {