Skip to content

Commit 10863b2

Browse files
Release 1.1.1
1 parent aba1348 commit 10863b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist/main/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14821,7 +14821,8 @@ function main() {
1482114821
});
1482214822
}
1482314823
function getLatestRelease(releases, prefix) {
14824-
return releases.filter(release => release.tag_name.startsWith(prefix))
14824+
const regex = new RegExp(`^${prefix}\\d+\\.\\d+\\.\\d+$`);
14825+
return releases.filter(release => release.tag_name.match(regex) !== null)
1482514826
.sort((a, b) => Date.parse(a.created_at) - Date.parse(b.created_at))
1482614827
.pop();
1482714828
}

0 commit comments

Comments
 (0)