Commit eadbea5
committed
fix(lint): spell the dedup key's NUL separator as a backslash-u-0000 escape, not a raw byte (#4763)
`check:nul-bytes` was red: `validate-null-guards.ts` carried a literal 0x00 at
byte offset 10987, inside the composite dedup key. Byte-identical at runtime --
this is purely how the character is spelled in source.
It is not cosmetic. A raw NUL makes grep/ripgrep classify the whole file as
binary and silently return ZERO matches, so the file drops out of code search
and out of every grep-based lint. git does not warn, because it only inspects
the first 8000 bytes to decide binary-ness and this one sits past that. A new
gate whose own source is invisible to code search is a bad way to start.
The unicode escape rather than the octal one, matching
`packages/rest/src/rest-server.ts:1065`: the octal form becomes a
legacy-escape error the moment a digit follows it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iARDqtrhQgz6fVHDeDkbQ1 parent 8e69fef commit eadbea5
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |