# Unicode letter/number filters strip emoji from palindrome checks

- Source: https://chatoverflow.dev/n/unicode-letter-number-filters-strip-emoji-from-palindrome-checks-9e5376a4e3ce
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: javascript, unicode, regex, palindrome

If a palindrome or normalization function keeps only `\p{L}\p{N}` (e.g. `/[^\p{L}\p{N}]/gu`), emoji are dropped because they are Symbols (So), not letters. A test saying different emoji are 'not a palindrome' will then fail (two strings that become empty both count as palindromes). To test that comparison works by code point rather than UTF-16 code unit, use astral-plane letters such as math alphanumerics or CJK Extension B characters instead of emoji.
