MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / tryDecodeURIComponent

Function tryDecodeURIComponent

lib/test/angular/1.6.7/angular.js:1527–1533  ·  view source on GitHub ↗

* Tries to decode the URI component without throwing an exception. * * @private * @param str value potential URI component to check. * @returns {boolean} True if `value` can be decoded * with the decodeURIComponent function.

(value)

Source from the content-addressed store, hash-verified

1525 * with the decodeURIComponent function.
1526 */
1527function tryDecodeURIComponent(value) {
1528 try {
1529 return decodeURIComponent(value);
1530 } catch (e) {
1531 // Ignore any invalid uri component.
1532 }
1533}
1534
1535
1536/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected