Skip to content

Commit

Permalink
Remove hardcoded limit on V4 and V5
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Dec 24, 2023
1 parent 7a5c822 commit bcae339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/GithubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ const e = new (class GithubClient extends TypedEmitter<IEvents> {
return response.data.reduce((result, release) => {
const match = /tgstation-server-v([\d.]+)/.exec(release.name ?? "");
if (!match) return result;
if (match[1][0] !== "4" && match[1][0] !== "5") return result;

const majorVersion = parseInt(match[1][0]);
if (majorVersion < 4) return result;

const version = match[1];
let old = false;
Expand Down

0 comments on commit bcae339

Please sign in to comment.