(s: string)
| 619 | // Query keys/values should have the "+" replaced first, as "+" in a query string is " ". |
| 620 | // decodeURIComponent function will not decode "+" as a space. |
| 621 | export function decodeQuery(s: string): string { |
| 622 | return decode(s.replace(/\+/g, '%20')); |
| 623 | } |
| 624 | |
| 625 | export function serializePath(path: UrlSegment): string { |
| 626 | return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`; |
no test coverage detected