* We need our custom method because encodeURIComponent is too aggressive and doesn't follow * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path * segments: * segment = *pchar * pchar = unreserved / pct-encoded / sub-delims / ":" / "
(val)
| 1349 | * / "*" / "+" / "," / ";" / "=" |
| 1350 | */ |
| 1351 | function encodeUriSegment(val) { |
| 1352 | return encodeUriQuery(val, true). |
| 1353 | replace(/%26/gi, '&'). |
| 1354 | replace(/%3D/gi, '='). |
| 1355 | replace(/%2B/gi, '+'); |
| 1356 | } |
| 1357 | |
| 1358 | |
| 1359 | /** |
no test coverage detected