MCPcopy
hub / github.com/angular-ui/ui-grid / tryDecodeURIComponent

Function tryDecodeURIComponent

lib/test/angular/1.7.0/angular.js:1495–1501  ·  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

1493 * with the decodeURIComponent function.
1494 */
1495function tryDecodeURIComponent(value) {
1496 try {
1497 return decodeURIComponent(value);
1498 } catch (e) {
1499 // Ignore any invalid uri component.
1500 }
1501}
1502
1503
1504/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected