MCPcopy
hub / github.com/angular/angular / decodeQuery

Function decodeQuery

packages/router/src/url_tree.ts:558–560  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

556// Query keys/values should have the "+" replaced first, as "+" in a query string is " ".
557// decodeURIComponent function will not decode "+" as a space.
558export function decodeQuery(s: string): string {
559 return decode(s.replace(/\+/g, '%20'));
560}
561
562export function serializePath(path: UrlSegment): string {
563 return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;

Callers 1

parseQueryParamMethod · 0.85

Calls 2

decodeFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…