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

Function tryDecodeURIComponent

lib/test/angular/1.5.0/angular.js:1344–1350  ·  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

1342 * with the decodeURIComponent function.
1343 */
1344function tryDecodeURIComponent(value) {
1345 try {
1346 return decodeURIComponent(value);
1347 } catch (e) {
1348 // Ignore any invalid uri component
1349 }
1350}
1351
1352
1353/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected