MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / tryDecodeURIComponent

Function tryDecodeURIComponent

code/songhop/www/lib/angular/angular.js:1096–1102  ·  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

1094 * with the decodeURIComponent function.
1095 */
1096function tryDecodeURIComponent(value) {
1097 try {
1098 return decodeURIComponent(value);
1099 } catch (e) {
1100 // Ignore any invalid uri component
1101 }
1102}
1103
1104
1105/**

Callers 1

parseKeyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected