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

Function tryDecodeURIComponent

test/angular/1.2/angular.js:1193–1199  ·  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

1191 * with the decodeURIComponent function.
1192 */
1193function tryDecodeURIComponent(value) {
1194 try {
1195 return decodeURIComponent(value);
1196 } catch(e) {
1197 // Ignore any invalid uri component
1198 }
1199}
1200
1201
1202/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected