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

Function normalizePath

docs/src/app/shared/normalize-path.ts:17–23  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

15 * - Removing a leading `./` if present.
16 */
17export function normalizePath(input: string): string {
18 input = normalize(input.replace(/\\/g, '/'));
19 if (input.startsWith('./')) {
20 input = input.substring(2);
21 }
22 return input;
23}

Callers 2

_generateExampleTabsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected