mirror of
https://github.com/certd/certd.git
synced 2026-04-25 13:17:25 +08:00
fix: 修复某些情况下无法输出日志的bug
This commit is contained in:
@@ -42,8 +42,7 @@ export function buildLogger(write: (text: string) => void) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//换成同长度的*号, item可能有多行
|
//换成同长度的*号, item可能有多行
|
||||||
const reg = new RegExp(item, "g");
|
text = text.replaceAll(item, "*".repeat(item.length));
|
||||||
text = text.replaceAll(reg, "*".repeat(item.length));
|
|
||||||
}
|
}
|
||||||
write(text);
|
write(text);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user