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

Function matchMatrixKeySegments

packages/router/src/url_tree.ts:671–674  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

669
670const MATRIX_PARAM_SEGMENT_RE = /^[^\/()?;=#]+/;
671function matchMatrixKeySegments(str: string): string {
672 const match = str.match(MATRIX_PARAM_SEGMENT_RE);
673 return match ? match[0] : '';
674}
675
676const QUERY_PARAM_RE = /^[^=?&#]+/;
677// Return the name of the query param at the start of the string or an empty string

Callers 1

parseParamMethod · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected