* 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)
| 1287 | * with the decodeURIComponent function. |
| 1288 | */ |
| 1289 | function tryDecodeURIComponent(value) { |
| 1290 | try { |
| 1291 | return decodeURIComponent(value); |
| 1292 | } catch (e) { |
| 1293 | // Ignore any invalid uri component |
| 1294 | } |
| 1295 | } |
| 1296 | |
| 1297 | |
| 1298 | /** |