* 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)
| 1081 | * with the decodeURIComponent function. |
| 1082 | */ |
| 1083 | function tryDecodeURIComponent(value) { |
| 1084 | try { |
| 1085 | return decodeURIComponent(value); |
| 1086 | } catch(e) { |
| 1087 | // Ignore any invalid uri component |
| 1088 | } |
| 1089 | } |
| 1090 | |
| 1091 | |
| 1092 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…