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