(text)
| 275 | return res; |
| 276 | }; |
| 277 | export const decode = (text) => { |
| 278 | if (!canDecode(text)) return text; |
| 279 | return text.replace(encodedPattern, `>${_decode(text)}<`); |
| 280 | }; |
| 281 | |
| 282 | const canDecode = (text) => { |
| 283 | return encodedPattern.test(text); |
no test coverage detected