From 3b8ed5ed98d6f6e3e0a01f5a625cd668e07494fd Mon Sep 17 00:00:00 2001 From: IDCs Date: Mon, 21 Oct 2024 14:39:23 +0100 Subject: [PATCH] cater for whitespace in mod versions... --- src/extensions/mod_management/util/testModReference.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extensions/mod_management/util/testModReference.ts b/src/extensions/mod_management/util/testModReference.ts index 01f83c4ec..fdb82702a 100644 --- a/src/extensions/mod_management/util/testModReference.ts +++ b/src/extensions/mod_management/util/testModReference.ts @@ -66,6 +66,7 @@ export function safeCoerce(input: string): string { } export function coerceToSemver(version: string): string { + version = version?.trim?.(); if (!version) { return undefined; }