* We need our custom method because encodeURIComponent is too aggressive and doesn't follow * https://tools.ietf.org/html/rfc3986 with regards to the character set (pchar) allowed in path * segments: * segment = *pchar * pchar = unreserved / pct-encoded / sub-delims / ":" / "
(val: string)
| 323 | * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1437 |
| 324 | */ |
| 325 | function encodeUriSegment(val: string) { |
| 326 | return encodeUriQuery(val, true).replace(/%26/g, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+'); |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * This method is intended for encoding *key* or *value* parts of query component. We need a custom |
no test coverage detected
searching dependent graphs…