(value: string)
| 180 | } |
| 181 | |
| 182 | export function isEmoji(value: string): boolean { |
| 183 | // TODO: In a future runtime update, we can switch to using Unicode Property Escapes: |
| 184 | // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escapes |
| 185 | return emojiRegex(value).test(value); |
| 186 | } |