* 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)
| 1493 | * with the decodeURIComponent function. |
| 1494 | */ |
| 1495 | function tryDecodeURIComponent(value) { |
| 1496 | try { |
| 1497 | return decodeURIComponent(value); |
| 1498 | } catch (e) { |
| 1499 | // Ignore any invalid uri component. |
| 1500 | } |
| 1501 | } |
| 1502 | |
| 1503 | |
| 1504 | /** |