diff --git a/CKAN/Tests/CKAN/Meta.cs b/CKAN/Tests/CKAN/Meta.cs index c79191a1ce..3abeb5ea5a 100644 --- a/CKAN/Tests/CKAN/Meta.cs +++ b/CKAN/Tests/CKAN/Meta.cs @@ -32,11 +32,11 @@ public void ReleaseNumber() } // We should always be in the form v0.xx (pre-release series), - // or vx.x.x (released). We also permit a (-RC\d) extension for - // release candidates. + // or vx.x.x (released). We also permit a (-RC\d+) extension for + // release candidates, and -PRE\d for pre-releases. Assert.IsTrue( - Regex.IsMatch(version.ToString(), @"^v(?:0.\d+|\d+\.\d+\.\d+(?:-RC\d+)?)$"), + Regex.IsMatch(version.ToString(), @"^v(?:0.\d+|\d+\.\d+\.\d+(?:-(?:RC|PRE)\d+)?)$"), version.ToString()); } }