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

Function normalizeSeparators

packages/compiler-cli/src/ngtsc/util/src/path.ts:17–20  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

15}
16
17export function normalizeSeparators(path: string): string {
18 // TODO: normalize path only for OS that need it.
19 return path.replace(/\\/g, '/');
20}
21
22/**
23 * Attempts to generate a project-relative path for a file.

Callers 1

wrapMethod · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…