diff --git a/lib/installer.js b/lib/installer.js index 5f068a15..09c352b5 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -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 diff --git a/src/installer.ts b/src/installer.ts index 646f552d..c0a37d3f 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -192,7 +192,7 @@ function getDownloadInfo( // Filter by platform refs.forEach(ref => { - if (ref.indexOf(extension) < 0) { + if (!ref.endsWith(extension + '">')) { return; }