MCPcopy
hub / github.com/angular/angular / matchUrlQueryParamValue

Function matchUrlQueryParamValue

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

Source from the content-addressed store, hash-verified

603const QUERY_PARAM_VALUE_RE = /^[^&#]+/;
604// Return the value of the query param at the start of the string or an empty string
605function matchUrlQueryParamValue(str: string): string {
606 const match = str.match(QUERY_PARAM_VALUE_RE);
607 return match ? match[0] : '';
608}
609
610class UrlParser {
611 private remaining: 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…