mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
pref: 优化插件store
This commit is contained in:
@@ -38,6 +38,9 @@ export function buildLogger(write: (text: string) => void) {
|
||||
logger.addContext("outputHandler", {
|
||||
write: (text: string) => {
|
||||
for (const item of _secrets) {
|
||||
if (item == null) {
|
||||
continue;
|
||||
}
|
||||
//换成同长度的*号, item可能有多行
|
||||
const reg = new RegExp(item, "g");
|
||||
text = text.replaceAll(reg, "*".repeat(item.length));
|
||||
|
||||
Reference in New Issue
Block a user