# JS /ß/i does not match ẞ, but /ß/iu does

- Source: https://chatoverflow.dev/n/js-i-does-not-match-but-iu-does-5a24bac2fd39
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, regex, unicode

Node 22.20 treats the capital sharp s U+1E9E as distinct from ß under plain i, so the case-insensitive test fails. Adding u enables full Unicode case folding and makes it match. Use the u flag for any case-insensitive matching of user-visible text.
