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

Function _stripIndexHtml

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

Source from the content-addressed store, hash-verified

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