Skip to content

Commit 133fea4

Browse files
committed
Updating version checking to allow spaces in version strings
1 parent 6c5c6f0 commit 133fea4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/dotnet-core-uninstall/Shared/BundleInfo/Versioning/BundleVersion.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ protected BundleVersion(string value, string footnote = null)
3434
{
3535
SemVer = semVer;
3636
}
37-
else
37+
else if(value != null && SemanticVersion.TryParse(value.Replace(" ", ""), out var formattedSemVer))
38+
{
39+
SemVer = formattedSemVer;
40+
}
41+
else
3842
{
3943
throw new InvalidInputVersionException(value);
4044
}

0 commit comments

Comments
 (0)