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

Function tryDecodeURIComponent

lib/test/angular/1.8.0/angular.js:1535–1541  ·  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

1533 * with the decodeURIComponent function.
1534 */
1535function tryDecodeURIComponent(value) {
1536 try {
1537 return decodeURIComponent(value);
1538 } catch (e) {
1539 // Ignore any invalid uri component.
1540 }
1541}
1542
1543
1544/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected