Match extension only at end of line

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

View file

@ -192,7 +192,7 @@ function getDownloadInfo(
// Filter by platform
refs.forEach(ref => {
if (ref.indexOf(extension) < 0) {
if (!ref.endsWith(extension + '">')) {
return;
}