Skip to content

Commit

Permalink
fix w3bstream version matching (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
osdodo authored Jun 7, 2023
1 parent 9bf0358 commit bcd63a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/routers/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const envRouter = t.router({
const res = await axios.get(url);
w3bstreamVersion = res?.data ? res?.data.match(/v(\d+\.\d+\.\d+(?:-\w+)?)/)[0] : '';
w3bstreamVersion = w3bstreamVersion.split('_')[0];
if (!w3bstreamVersion.includes('-rc')) {
w3bstreamVersion = w3bstreamVersion.split('-')[0];
}
} catch (error) {
console.error(error);
}
Expand Down

0 comments on commit bcd63a5

Please sign in to comment.