From 802c3cd8e8a5beef557ab509339af685b43a6560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 29 Apr 2019 17:11:55 +0300 Subject: [PATCH] Allow tilde as optional suffix separator (#3378) For example [Debian] uses them, typically for pre-releases. --- services/test-validators.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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