diff --git a/build/check-icons.js b/build/check-icons.js index 73f1a5bad5..69b80bdb47 100755 --- a/build/check-icons.js +++ b/build/check-icons.js @@ -23,7 +23,7 @@ const iconsDir = path.join(__dirname, '../icons/') const svgFiles = await fs.readdir(iconsDir) const jsonIconList = Object.keys(fontJson) - const svgIconList = svgFiles.map(svg => path.basename(svg, path.extname(svg))) + const svgIconList = svgFiles.map(svg => path.basename(svg, '.svg')) const onlyInJson = jsonIconList.filter(icon => !svgIconList.includes(icon)) const onlyInSvg = svgIconList.filter(icon => !jsonIconList.includes(icon))