* 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)
| 1111 | * with the decodeURIComponent function. |
| 1112 | */ |
| 1113 | function tryDecodeURIComponent(value) { |
| 1114 | try { |
| 1115 | return decodeURIComponent(value); |
| 1116 | } catch (e) { |
| 1117 | // Ignore any invalid uri component |
| 1118 | } |
| 1119 | } |
| 1120 | |
| 1121 | |
| 1122 | /** |