remove debug code
This commit is contained in:
parent
2b035920ad
commit
7ed6656788
|
@ -50,17 +50,11 @@ async function main() {
|
||||||
const files = await glob(dir, { cwd });
|
const files = await glob(dir, { cwd });
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
//console.log(`Scanning ${file}`);
|
//console.log(`Scanning ${file}`);
|
||||||
if (file.includes('MkSignin')) {
|
|
||||||
console.log(`Scanning ${file}`);
|
|
||||||
}
|
|
||||||
const content = await fsp.readFile(path.resolve(cwd, file), 'utf-8');
|
const content = await fsp.readFile(path.resolve(cwd, file), 'utf-8');
|
||||||
const classRegex = /ti-[a-z0-9-]+/g;
|
const classRegex = /ti-[a-z0-9-]+/g;
|
||||||
let matches: RegExpExecArray | null;
|
let matches: RegExpExecArray | null;
|
||||||
while ((matches = classRegex.exec(content)) !== null) {
|
while ((matches = classRegex.exec(content)) !== null) {
|
||||||
const icon = matches[0];
|
const icon = matches[0];
|
||||||
if (file.includes('MkSignin')) {
|
|
||||||
console.log(`Found ${icon}, ${rgMap.has(icon)}`);
|
|
||||||
}
|
|
||||||
if (rgMap.has(icon)) {
|
if (rgMap.has(icon)) {
|
||||||
iconsToPack.add(icon);
|
iconsToPack.add(icon);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue