Skip to content

Commit 59e2a38

Browse files
committed
FIX
1 parent 30380b1 commit 59e2a38

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ const readdirRecursively = (dir: string, files: string[] = []) => {
3434
};
3535

3636
for (const file of readdirRecursively(".")) {
37-
console.log("looking ", file, ", deciding whether skip or not...");
37+
console.log("looking", file, "deciding whether skip or not...");
3838

39-
if (!file.match(/compilation.*\.log$/)) {
39+
const res = file.match(/compilation.*\.log$/);
40+
41+
if (res === null || res.length === 0) {
4042
continue;
4143
}
4244

43-
console.log("found ", file, ", detecting warnings...");
45+
console.log("found", file, "detecting warnings...");
4446

4547
const compilation_output = readFileSync(file).toString();
4648

0 commit comments

Comments
 (0)