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

Function tryDecodeURIComponent

lib/test/angular/1.4.3/angular.js:1289–1295  ·  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

1287 * with the decodeURIComponent function.
1288 */
1289function tryDecodeURIComponent(value) {
1290 try {
1291 return decodeURIComponent(value);
1292 } catch (e) {
1293 // Ignore any invalid uri component
1294 }
1295}
1296
1297
1298/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected