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

Function tryDecodeURIComponent

test/angular/1.3/angular.js:1113–1119  ·  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

1111 * with the decodeURIComponent function.
1112 */
1113function tryDecodeURIComponent(value) {
1114 try {
1115 return decodeURIComponent(value);
1116 } catch (e) {
1117 // Ignore any invalid uri component
1118 }
1119}
1120
1121
1122/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected