Update utils.ts
This commit is contained in:
parent
2810265746
commit
1a102bc9f2
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ export async function getManifestURL(): Promise<string> {
|
|||
*/
|
||||
export async function parseVersion(version: string): Promise<string> {
|
||||
switch (true) {
|
||||
case /^(latest|nightly|\d+\.x)$/.test(version):
|
||||
case /^(latest|lowest|nightly|\d+\.x)$/.test(version):
|
||||
return JSON.parse((await fetch.fetch(await getManifestURL()))['data'])[
|
||||
version
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue