MCPcopy
hub / github.com/angular/angular-cli / stripMatrixParams

Function stripMatrixParams

packages/angular/ssr/src/utils/url.ts:224–228  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

222 * ```
223 */
224export function stripMatrixParams(pathname: string): string {
225 // Use a regular expression to remove matrix parameters.
226 // This regex finds all occurrences of a semicolon followed by any characters
227 return pathname.includes(';') ? pathname.replace(MATRIX_PARAMS_REGEX, '') : pathname;
228}
229
230/**
231 * Constructs a decoded URL string from its components.

Callers 2

url_spec.tsFile · 0.90
matchMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected