Skip to content

Commit d7a0207

Browse files
Exclude more information from the client transcript
1 parent 78ef350 commit d7a0207

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/tools/fuzzer/Client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,11 @@ class Client implements ActionableClient {
229229
lines
230230
// indent, for readability
231231
.map(line => ` ${line}`)
232-
// Since the server could still be running, don't include web clipper tokens in the output:
232+
// Since the server could still be running if the user posts the log, don't including
233+
// web clipper tokens in the output:
233234
.map(line => line.replace(/token=[a-z0-9A-Z_]+/g, 'token=*****'))
234235
// Don't include the sync password in the output
235-
.map(line => line.replace(/(config "sync.9.password") ".*"/, '$1 "****"'))
236+
.map(line => line.replace(/(config "(sync.9.password|api.token)") ".*"/, '$1 "****"'))
236237
.join('\n')
237238
);
238239
}

0 commit comments

Comments
 (0)