MCPcopy Index your code
hub / github.com/binux/qiandao / tryDecodeURIComponent

Function tryDecodeURIComponent

web/static/components/angularjs/angular.js:1186–1192  ·  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

1184 * with the decodeURIComponent function.
1185 */
1186function tryDecodeURIComponent(value) {
1187 try {
1188 return decodeURIComponent(value);
1189 } catch(e) {
1190 // Ignore any invalid uri component
1191 }
1192}
1193
1194
1195/**

Callers 1

parseKeyValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected