This commit is contained in:
crowlkats 2024-07-12 13:30:12 +02:00
parent 8b818baf75
commit 424e31d72a
No known key found for this signature in database
GPG Key ID: A82C9D461FC483E8

View File

@ -105,7 +105,11 @@ async function resolveVersion({ range, isCanary }) {
"Failed to fetch release version info from dl.deno.land. Please try again later.", "Failed to fetch release version info from dl.deno.land. Please try again later.",
); );
} }
const version = (await res.text()).trim(); let version = (await res.text()).trim();
version = semver.clean(version);
if (version === null) {
return null;
}
return { version, isCanary: false }; return { version, isCanary: false };
} }