(pathname: string)
| 222 | * ``` |
| 223 | */ |
| 224 | export 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. |
no outgoing calls
no test coverage detected