MCPcopy
hub / github.com/angular/angular / matchMatrixKeySegments

Function matchMatrixKeySegments

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

Source from the content-addressed store, hash-verified

589
590const MATRIX_PARAM_SEGMENT_RE = /^[^\/()?;=#]+/;
591function matchMatrixKeySegments(str: string): string {
592 const match = str.match(MATRIX_PARAM_SEGMENT_RE);
593 return match ? match[0] : '';
594}
595
596const QUERY_PARAM_RE = /^[^=?&#]+/;
597// 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…