MCPcopy
hub / github.com/jquery/esprima / tryDecodeURIComponent

Function tryDecodeURIComponent

test/3rdparty/angular-1.2.5.js:1083–1089  ·  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

1081 * with the decodeURIComponent function.
1082 */
1083function tryDecodeURIComponent(value) {
1084 try {
1085 return decodeURIComponent(value);
1086 } catch(e) {
1087 // Ignore any invalid uri component
1088 }
1089}
1090
1091
1092/**

Callers 1

parseKeyValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…