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; }