From 55a854ca54ad2cf2b375a9a6f3d322ae4912292c Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Wed, 18 Sep 2024 18:19:04 -0400 Subject: [PATCH] fix(git-node): followup fix for supported wpt jsons --- components/git/wpt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/git/wpt.js b/components/git/wpt.js index f5d1b22c..66c8784b 100644 --- a/components/git/wpt.js +++ b/components/git/wpt.js @@ -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}`); }