* 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)
| 1405 | * with the decodeURIComponent function. |
| 1406 | */ |
| 1407 | function tryDecodeURIComponent(value) { |
| 1408 | try { |
| 1409 | return decodeURIComponent(value); |
| 1410 | } catch (e) { |
| 1411 | // Ignore any invalid uri component. |
| 1412 | } |
| 1413 | } |
| 1414 | |
| 1415 | |
| 1416 | /** |