Skip to content

Commit

Permalink
build: strip out .json file extension when comparing GHES versions (#…
Browse files Browse the repository at this point in the history
…354)

* build: strip out `.json` file extension when comparing GHES versions

* style: prettier
  • Loading branch information
wolfy1339 authored Sep 23, 2023
1 parent 181d9d7 commit abf67d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ async function run(version) {
if (/diff/.test(asset.name)) continue;

if (/^ghes-/.test(asset.name)) {
if (!currentGHESVersions.includes(asset.name.substr("ghes-".length))) {
if (
!currentGHESVersions.includes(
asset.name.substr("ghes-".length).replace(/\.json$/, ""),
)
) {
continue;
}
}
Expand Down

0 comments on commit abf67d6

Please sign in to comment.