Strips the error message prefix from a message or stack trace.
(input: string)
| 46 | |
| 47 | /** Strips the error message prefix from a message or stack trace. */ |
| 48 | function stripErrorMessagePrefix(input: string): string { |
| 49 | return input.replace(/^(Uncaught )?Error: /, ''); |
| 50 | } |
no outgoing calls
no test coverage detected