* 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)
| 1094 | * with the decodeURIComponent function. |
| 1095 | */ |
| 1096 | function tryDecodeURIComponent(value) { |
| 1097 | try { |
| 1098 | return decodeURIComponent(value); |
| 1099 | } catch (e) { |
| 1100 | // Ignore any invalid uri component |
| 1101 | } |
| 1102 | } |
| 1103 | |
| 1104 | |
| 1105 | /** |