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