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