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}`); }