feat(icons): 批次A新增12个Iconify合规源(+45,664图标),总236源/417,168图标;统一skipNameRe过滤空白动画
This commit is contained in:
@@ -1020,6 +1020,14 @@ async function main() {
|
||||
});
|
||||
if (icons.length < beforeN) console.log(` ↳ 剔除 ${beforeN - icons.length} 个无几何/动效空白图标`);
|
||||
|
||||
// 源配置级过滤(如动画首帧空白 / 坐标越界):对所有 format(含缓存命中)统一生效
|
||||
if (src.skipNameRe) {
|
||||
const re = new RegExp(src.skipNameRe);
|
||||
const skipped = icons.length;
|
||||
icons = icons.filter(ic => !re.test(ic.name));
|
||||
if (icons.length < skipped) console.log(` ↳ skipNameRe 跳过 ${skipped - icons.length} 个`);
|
||||
}
|
||||
|
||||
// 批次下载完整性校验:对比最终内置数 vs 官方索引数,检测下载损坏/缺失/格式错误;
|
||||
// 本次实际下载的源额外执行内容级像素校验(内容是否在 24 视口内 / 面积是否过小)
|
||||
const pix = downloaded ? contentPixCheck(icons) : null;
|
||||
|
||||
Reference in New Issue
Block a user