Skip to content

Commit 6b9bf51

Browse files
typo
1 parent cf32b6c commit 6b9bf51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/web_startup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function main() {
3030
o.textContent = o.value = v;
3131
ver_switcher.append(o);
3232
}
33-
var latest_version = await fetch("pyproject.toml").then(r => r.text()).then(r => /version = "([\d.]+)"/.exec(r)[0]);
33+
var latest_version = await fetch("pyproject.toml").then(r => r.text()).then(r => /version = "([\d.]+)"/.exec(r)[1]);
3434
ver_switcher.value = latest_version;
3535
info(`["${all_versions.join('", "')}"]\nlatest=${latest_version}\n`);
3636
await switch_version();

0 commit comments

Comments
 (0)