MCPcopy Index your code
hub / github.com/angular/angular / stripNewlines

Function stripNewlines

packages/core/src/hydration/error_handling.ts:475–477  ·  view source on GitHub ↗

* Strips all newlines out of a given string * * @param input a string to be cleared of new line characters * @returns

(input: string)

Source from the content-addressed store, hash-verified

473 * @returns
474 */
475function stripNewlines(input: string): string {
476 return input.replace(/\s+/gm, '');
477}
478
479/**
480 * Reduces a string down to a maximum length of characters with ellipsis for readability

Callers 1

shortenFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…