MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / encodeUriSegment

Function encodeUriSegment

lib/test/angular/1.7.0/angular.js:1563–1568  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

1561 * / "*" / "+" / "," / ";" / "="
1562 */
1563function encodeUriSegment(val) {
1564 return encodeUriQuery(val, true).
1565 replace(/%26/gi, '&').
1566 replace(/%3D/gi, '=').
1567 replace(/%2B/gi, '+');
1568}
1569
1570
1571/**

Callers 4

encodePathFunction · 0.70
LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls 1

encodeUriQueryFunction · 0.70

Tested by

no test coverage detected