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

Function matchQueryParams

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

Source from the content-addressed store, hash-verified

676const QUERY_PARAM_RE = /^[^=?&#]+/;
677// Return the name of the query param at the start of the string or an empty string
678function matchQueryParams(str: string): string {
679 const match = str.match(QUERY_PARAM_RE);
680 return match ? match[0] : '';
681}
682
683const QUERY_PARAM_VALUE_RE = /^[^&#]+/;
684// 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