* 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)
| 1525 | * with the decodeURIComponent function. |
| 1526 | */ |
| 1527 | function tryDecodeURIComponent(value) { |
| 1528 | try { |
| 1529 | return decodeURIComponent(value); |
| 1530 | } catch (e) { |
| 1531 | // Ignore any invalid uri component. |
| 1532 | } |
| 1533 | } |
| 1534 | |
| 1535 | |
| 1536 | /** |