Skip to content

Commit

Permalink
Fix .vsix release asset matching
Browse files Browse the repository at this point in the history
Fixes #695

Test suite: https://regexr.com/7hpbt
  • Loading branch information
filiptronicek committed Jul 28, 2023
1 parent 29e50c6 commit 59e528a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolveExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports.resolveExtension = async function ({ id, repository, location }, ms) {

const releaseAssets = release.assets.
map(asset => asset.browser_download_url).
filter(downloadURL => downloadURL.match(/\/releases\/download\/[-._a-zA-Z0-9\/%]*\.vsix/g));
filter(downloadURL => downloadURL.match(/\/releases\/download\/[-._a-zA-Z0-9\/%]*\.vsix$/g));

/** @type {{[key: string]: string}} */
const platformSpecific = {};
Expand Down

0 comments on commit 59e528a

Please sign in to comment.