Skip to content

Commit 49963c2

Browse files
committed
version number test: expand preview characters
1 parent 76a8cf3 commit 49963c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp.Tests/GlobalSettingsFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void CanRetrieveValidVersionString()
3030
// git2hash: '06d772d' LibGit2 library hash.
3131
// arch: 'x86' or 'x64' LibGit2 target.
3232
// git2Features: 'Threads, Ssh' LibGit2 features compiled with.
33-
string regex = @"^(?<version>\d+\.\d+\.\d+(-\w+)?\+(g(?<git2SharpHash>[a-f0-9]{10})\.)?LibGit2-[a-f0-9]{7}) \((?<arch>\w+) - (?<git2Features>(?:\w*(?:, )*\w+)*)\)$";
33+
string regex = @"^(?<version>\d+\.\d+\.\d+(-[\w\-\.]+)?\+(g(?<git2SharpHash>[a-f0-9]{10})\.)?LibGit2-[a-f0-9]{7}) \((?<arch>\w+) - (?<git2Features>(?:\w*(?:, )*\w+)*)\)$";
3434

3535
Assert.NotNull(versionInfo);
3636

0 commit comments

Comments
 (0)