Skip to content

Commit 05763a5

Browse files
Strip swift- prefix from tag name
1 parent 943585e commit 05763a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nightly/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ async function getLatestNightlyVersion() {
1212
})) {
1313
for (const release of response.data) {
1414
if (release.tag_name.startsWith('swift-wasm-DEVELOPMENT-SNAPSHOT-')) {
15-
return release.tag_name;
15+
const tagName = release.tag_name;
16+
// Strip swift- prefix from the tag name
17+
return tagName.substring("swift-".length);
1618
}
1719
}
1820
}

0 commit comments

Comments
 (0)