MCPcopy Create free account
hub / github.com/angular/components / stripErrorMessagePrefix

Function stripErrorMessagePrefix

docs/src/app/shared/analytics/format-error.ts:48–50  ·  view source on GitHub ↗

Strips the error message prefix from a message or stack trace.

(input: string)

Source from the content-addressed store, hash-verified

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

Callers 2

formatErrorForAnalyticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected