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

Function _stripIndexHtml

packages/common/src/location/location.ts:321–323  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

319}
320
321function _stripIndexHtml(url: string): string {
322 return url.replace(/\/index\.html$/, '');
323}
324
325function _stripOrigin(baseHref: string): string {
326 // DO NOT REFACTOR! Previously, this check looked like this:

Callers 2

constructorMethod · 0.70
normalizeMethod · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…