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

Function decodeQuery

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

Source from the content-addressed store, hash-verified

619// Query keys/values should have the "+" replaced first, as "+" in a query string is " ".
620// decodeURIComponent function will not decode "+" as a space.
621export function decodeQuery(s: string): string {
622 return decode(s.replace(/\+/g, '%20'));
623}
624
625export function serializePath(path: UrlSegment): string {
626 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