(stdout)
| 251 | .replaceAll(/\s+at .+(}|\)|\d)/gs, "\n at stack"); |
| 252 | |
| 253 | const normalizeStdout = (stdout) => { |
| 254 | if (typeof stdout !== "string") { |
| 255 | return stdout; |
| 256 | } |
| 257 | |
| 258 | if (stdout.length === 0) { |
| 259 | return stdout; |
| 260 | } |
| 261 | |
| 262 | let normalizedStdout = stripVTControlCharacters(stdout); |
| 263 | normalizedStdout = normalizeCwd(normalizedStdout); |
| 264 | normalizedStdout = normalizeVersions(normalizedStdout); |
| 265 | normalizedStdout = normalizeError(normalizedStdout); |
| 266 | |
| 267 | return normalizedStdout; |
| 268 | }; |
| 269 | |
| 270 | const IPV4 = /(25[0-5]|2[0-4][0-9]|1?[0-9][0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}/g; |
| 271 | const IPV6 = /([0-9a-f]){1,4}(:([0-9a-f]){1,4}){7}/gi; |
no test coverage detected