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

Function tryDecodeURIComponent

test/angular/1.5/angular.js:1407–1413  ·  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

1405 * with the decodeURIComponent function.
1406 */
1407function tryDecodeURIComponent(value) {
1408 try {
1409 return decodeURIComponent(value);
1410 } catch (e) {
1411 // Ignore any invalid uri component.
1412 }
1413}
1414
1415
1416/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected