diff --git a/services/test-validators.js b/services/test-validators.js index 645f30e1b5..a781bcaf54 100644 --- a/services/test-validators.js +++ b/services/test-validators.js @@ -21,9 +21,9 @@ const isVPlusDottedVersionNClauses = withRegex(/^v\d+(\.\d+)*$/) // matches a version number with N 'clauses' // and an optional text suffix -// e.g: -beta, -preview1, -release-candidate, +beta etc +// e.g: -beta, -preview1, -release-candidate, +beta, ~pre9-12 etc const isVPlusDottedVersionNClausesWithOptionalSuffix = withRegex( - /^v\d+(\.\d+)*([-+].*)?$/ + /^v\d+(\.\d+)*([-+~].*)?$/ ) // Simple regex for test Composer versions rule