Skip to content

Commit d2776a5

Browse files
author
Devin Rader
committed
Fixing regex to allow non-prerelease version numbers
1 parent 30cd8ef commit d2776a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp.Tests/NuSpecUpdateTask.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class WhenSpecFileIsValid : BaseNuSpecUpdateTest
6767
private string _expectedDescription = "Simple REST and HTTP API Client";
6868
private string _expectedAuthors = "John Sheehan, RestSharp Community";
6969
private string _expectedOwners = "John Sheehan, RestSharp Community";
70-
private Regex _expectedVersion = new Regex(@"^\d+\.\d+\.\d+(-\w+)$", RegexOptions.Compiled);
70+
private Regex _expectedVersion = new Regex(@"^\d+\.\d+\.\d+(-\w+)?$", RegexOptions.Compiled);
7171

7272
protected override void Setup()
7373
{

0 commit comments

Comments
 (0)