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

Function _stripIndexHtml

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

Source from the content-addressed store, hash-verified

326}
327
328function _stripIndexHtml(url: string): string {
329 return url.replace(/\/index\.html$/, '');
330}
331
332function _stripOrigin(baseHref: string): string {
333 // 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