{"version":"2.1.277","anchor":"edit-tools-uxxxx-escape-text-search-hardened-with-a-length","canonical_anchor":"edit-tools-uxxxx-escape-text-search-hardened-with-a-length","heading":"Edit tool's \\uXXXX-escape text search hardened with a length guard and clearer failure","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277\/e\/edit-tools-uxxxx-escape-text-search-hardened-with-a-length","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277","markdown":"### Edit tool's \\uXXXX-escape text search hardened with a length guard and clearer failure\n\nEdit tool's handling of \\uXXXX text in search strings is hardened with a size check and clearer error\n\n**What**\n\nThe `Edit` tool can treat a literal search string containing `\\uXXXX` unicode escape sequences as if it were a regular expression. Before building that regular expression, Claude Code now estimates how long the resulting pattern would be and checks that the escape sequences are well-formed, instead of just testing length and regex validity generically. If this check fails, it now logs a specific message explaining that the `\\uXXXX`-escape search was skipped because the regex engine refused a pattern of a given length, rather than silently returning nothing.\n\n**Why**\n\nThis makes it clearer when and why an edit search involving unicode escapes didn't work, instead of the tool failing silently.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}