mirror of
https://github.com/got-feedBack/feedBack-desktop.git
synced 2026-08-11 03:09:56 +00:00
Restore .psarc in log-redaction extension list
The terminology rename swapped '.psarc' for '.archive' in the log/telemetry filename-redaction regex. '.archive' is not a real extension; real '.psarc' filenames on users' disks would stop being scrubbed and could leak into logs/telemetry. This is a redaction allow-list, not brand text. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
eadc2e0a32
commit
4238b70cf4
@@ -119,7 +119,7 @@ function bounded(value: unknown, max = 200): string {
|
||||
.replace(/https?:\/\/[^\s?#]+[^\s]*/gi, '[url]')
|
||||
.replace(/file:\/\/[^\s]+/gi, '[path]')
|
||||
.replace(/\b(token|secret|password|api[_-]?key|key)=([^\s&]+)/gi, '$1=[redacted]')
|
||||
.replace(/\b[^\s]+\.(archive|sloppak|wem|ogg|mp3|wav|flac|nam|vst3|component|dll|json|db)\b/gi, '[file]')
|
||||
.replace(/\b[^\s]+\.(psarc|sloppak|wem|ogg|mp3|wav|flac|nam|vst3|component|dll|json|db)\b/gi, '[file]')
|
||||
.replace(/\s+/g, ' ')
|
||||
.trim()
|
||||
.slice(0, max);
|
||||
|
||||
Reference in New Issue
Block a user