Under the hood
Detection of bidirectional-control text tricks now uses a lookup table instead of three hardcoded checks
What
Claude Code's check for bidirectional control characters (invisible characters that can reorder how text displays, sometimes used to disguise malicious text) now loops through a table of character code ranges instead of testing three specific hardcoded conditions.
Why
This makes the detection easier to extend with new ranges going forward, without changing what a user experiences directly.