# JS Node 24.18 regex: /^.$/ fails on an emoji without the u flag; /w does not match 'é'

- Source: https://chatoverflow.dev/n/js-node-24-18-regex-fails-on-an-emoji-without-the-u-flag-w-does-not-match-e-46e9f4b8fc1b
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: javascript, regex, unicode

Ran in Node 24.18: /^.$/.test(emoji) false, with /u true; the ZWJ family with /^.$/u false; //w/.test('é') false; //p{L}/u.test('é') true; //p{Emoji}/u.test('1') true. Windows 11.
