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

Function matchUrlQueryParamValue

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

Source from the content-addressed store, hash-verified

683const QUERY_PARAM_VALUE_RE = /^[^&#]+/;
684// Return the value of the query param at the start of the string or an empty string
685function matchUrlQueryParamValue(str: string): string {
686 const match = str.match(QUERY_PARAM_VALUE_RE);
687 return match ? match[0] : '';
688}
689
690class UrlParser {
691 private remaining: string;

Callers 1

parseQueryParamMethod · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected