From dd6028e73c031249558af8803833a7b338497542 Mon Sep 17 00:00:00 2001 From: Gil Tene Date: Mon, 30 Sep 2019 14:28:53 -0700 Subject: [PATCH] Match extension only at end of line --- src/installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }