Skip to content

Commit

Permalink
fix nightly upgrade from dev version to tagged version
Browse files Browse the repository at this point in the history
Closes #200
  • Loading branch information
Vexu committed Apr 20, 2024
1 parent 4e6759d commit 3183c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zigSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { install as installZLS } from "./zls";
const DOWNLOAD_INDEX = "https://ziglang.org/download/index.json";

function getNightlySemVer(url: string): string {
const matches = url.match(/-(\d+\.\d+\.\d+-dev\.\d+\+\w+)\./);
const matches = url.match(/-(\d+\.\d+\.\d+(-dev\.\d+\+\w+)?)\./);
if (!matches) throw new Error(`url '${url}' does not contain a semantic version!`);
return matches[1];
}
Expand Down

0 comments on commit 3183c90

Please sign in to comment.