MCPcopy
hub / github.com/angular/angular / matchQueryParams

Function matchQueryParams

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

Source from the content-addressed store, hash-verified

596const QUERY_PARAM_RE = /^[^=?&#]+/;
597// Return the name of the query param at the start of the string or an empty string
598function matchQueryParams(str: string): string {
599 const match = str.match(QUERY_PARAM_RE);
600 return match ? match[0] : '';
601}
602
603const QUERY_PARAM_VALUE_RE = /^[^&#]+/;
604// Return the value of the query param at the start of the string or an empty string

Callers 1

parseQueryParamMethod · 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…