* 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)
| 1535 | * with the decodeURIComponent function. |
| 1536 | */ |
| 1537 | function tryDecodeURIComponent(value) { |
| 1538 | try { |
| 1539 | return decodeURIComponent(value); |
| 1540 | } catch (e) { |
| 1541 | // Ignore any invalid uri component. |
| 1542 | } |
| 1543 | } |
| 1544 | |
| 1545 | |
| 1546 | /** |