Match extension only at end of line

This commit is contained in:
Gil Tene 2019-09-30 14:29:38 -07:00 committed by GitHub
parent dd6028e73c
commit 25d3249d32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,7 @@ function getDownloadInfo(refs, version) {
let versionMap = new Map();
// Filter by platform
refs.forEach(ref => {
if (ref.indexOf(extension) < 0) {
if (!ref.endsWith(extension + '">')) {
return;
}
// If we haven't returned, means we're looking at the correct platform