Skip to content

Commit

Permalink
final error handling modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCs committed Aug 21, 2024
1 parent 0045996 commit 07eb91d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/extensions/mod_management/util/testModReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,12 @@ export function coerceToSemver(version: string): string {
}
} else {
if (coerceableRE.test(version)) {
return semver.coerce(version).version ?? version;
const coerced = semver.coerce(version);
if (coerced) {
return coerced.version
}
return version;
}
return version;
}
}

Expand Down

0 comments on commit 07eb91d

Please sign in to comment.