Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Jul 12, 2024
1 parent 8b818ba commit 424e31d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ async function resolveVersion({ range, isCanary }) {
"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 };
}

Expand Down

0 comments on commit 424e31d

Please sign in to comment.