From 25d3249d327203938742506e5bbbffda79e56d0f Mon Sep 17 00:00:00 2001 From: Gil Tene Date: Mon, 30 Sep 2019 14:29:38 -0700 Subject: [PATCH] Match extension only at end of line --- lib/installer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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