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