Commit cfd57ac
fix(env): keep emoji / surrogate pairs intact during env value truncation
Use Array.from() to count full code points instead of UTF-16 code
units, preventing lone surrogates in env var display output.
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent 775ef96 commit cfd57ac
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments