(error: unknown)
| 109 | .replace(/\bfile:\/\/\S+/gi, PATH_REDACT) |
| 110 | .replace(/\bhttps?:\/\/\S+/gi, URL_REDACT) |
| 111 | .replace(/\\{2}[^\s'")\]]+/g, PATH_REDACT) |
| 112 | .replace(/\b[a-zA-Z]:\\[^\s'")\]]+/g, PATH_REDACT) |
| 113 | .replace(unixPathRe, PATH_REDACT); |
| 114 | } |
| 115 | |
| 116 | export function captureException(error: unknown) { |
| 117 | if (!sentryEnabled) { |
| 118 | return; |
| 119 | } |
no outgoing calls
no test coverage detected