* 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)
| 1184 | * with the decodeURIComponent function. |
| 1185 | */ |
| 1186 | function tryDecodeURIComponent(value) { |
| 1187 | try { |
| 1188 | return decodeURIComponent(value); |
| 1189 | } catch(e) { |
| 1190 | // Ignore any invalid uri component |
| 1191 | } |
| 1192 | } |
| 1193 | |
| 1194 | |
| 1195 | /** |