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

Method normalizePath

adev/src/app/editor/typings-loader.service.ts:225–233  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

223 }
224
225 private normalizePath(path: string): string {
226 if (path.startsWith('./')) {
227 return path.substring(2);
228 }
229 if (path.startsWith('.')) {
230 return path.substring(1);
231 }
232 return path;
233 }
234}

Callers 1

getFilesToReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected