Repository navigation
Commit 510208b
committed
ci(translator): address third round of CodeRabbit findings
- Surrogate-safe title truncation: .slice(0, 256) can split a UTF-16
surrogate pair (e.g. emoji at position 255), producing an invalid
string; check whether char 255 is a high surrogate and back up by
one if so
- Scope duplicate-comment guard to github-actions[bot] author: any
user could post the marker string manually and permanently block the
translation; require the bot login as well as the marker1 parent 0abc357 commit 510208b
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | | - | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
0 commit comments