* 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)
| 1253 | * / "*" / "+" / "," / ";" / "=" |
| 1254 | */ |
| 1255 | function encodeUriSegment(val) { |
| 1256 | return encodeUriQuery(val, true). |
| 1257 | replace(/%26/gi, '&'). |
| 1258 | replace(/%3D/gi, '='). |
| 1259 | replace(/%2B/gi, '+'); |
| 1260 | } |
| 1261 | |
| 1262 | |
| 1263 | /** |
no test coverage detected