Skip to content

Commit

Permalink
cater for whitespace in mod versions...
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCs committed Oct 21, 2024
1 parent f29cdfc commit 3b8ed5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extensions/mod_management/util/testModReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export function safeCoerce(input: string): string {
}

export function coerceToSemver(version: string): string {
version = version?.trim?.();
if (!version) {
return undefined;
}
Expand Down

0 comments on commit 3b8ed5e

Please sign in to comment.