Skip to content

Commit

Permalink
fix(git-node): followup fix for supported wpt jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev committed Sep 24, 2024
1 parent aa25318 commit 55a854c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/git/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function main(argv) {
if (fs.existsSync(statusFolder)) {
const jsons = fs.readdirSync(statusFolder);
supported = supported.concat(
jsons.map(item => item.replace('.json', '')));
jsons.map(item => path.basename(item, path.extname(item))));
} else {
cli.warn(`Please create the status JSON files in ${statusFolder}`);
}
Expand Down

0 comments on commit 55a854c

Please sign in to comment.