fix: fix branch type regexp to handle version with multiple digits
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user