From 6d391a5eb73f56690214cfce9bd2bc92f4022b4a Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 20 Oct 2024 16:47:38 -0400 Subject: [PATCH] Fix issues with semver parsing server-side --- src/Tgstation.Server.Host/GraphQL/Scalars/SemverType.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/GraphQL/Scalars/SemverType.cs b/src/Tgstation.Server.Host/GraphQL/Scalars/SemverType.cs index de8c1e530a..3f6f6608af 100644 --- a/src/Tgstation.Server.Host/GraphQL/Scalars/SemverType.cs +++ b/src/Tgstation.Server.Host/GraphQL/Scalars/SemverType.cs @@ -67,7 +67,8 @@ namespace Tgstation.Server.Host.GraphQL.Scalars protected override bool IsInstanceOfType(StringValueNode valueSyntax) { ArgumentNullException.ThrowIfNull(valueSyntax); - return IsInstanceOfType(valueSyntax.Value); + return Version.TryParse(valueSyntax.Value, out var parsedVersion) + && IsInstanceOfType(parsedVersion); } ///