(value: string)
| 109 | } |
| 110 | |
| 111 | function redactString(value: string): string { |
| 112 | let out = value; |
| 113 | for (const pattern of RAW_SECRET_PATTERNS) { |
| 114 | out = out.replace(pattern, `$1${REDACTED}`); |
| 115 | } |
| 116 | return out; |
| 117 | } |
| 118 | |
| 119 | function quote(value: string): string { |
| 120 | return `"${value.replaceAll('\\', '\\\\').replaceAll('"', '\\"').replaceAll('\n', '\\n')}"`; |
no outgoing calls
no test coverage detected