This flag matches astral characters such as emojis:

console.log(/^.$/u.test("🙂")); // true