mirror of https://github.com/certd/certd
fix: 修复某些情况下无法输出日志的bug
parent
203f2984d7
commit
70101bfa7a
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue