* 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)
| 1344 | * with the decodeURIComponent function. |
| 1345 | */ |
| 1346 | function tryDecodeURIComponent(value) { |
| 1347 | try { |
| 1348 | return decodeURIComponent(value); |
| 1349 | } catch (e) { |
| 1350 | // Ignore any invalid uri component |
| 1351 | } |
| 1352 | } |
| 1353 | |
| 1354 | |
| 1355 | /** |