Skip to content

Commit 4cbad8d

Browse files
committed
ci(final-check): build the zero-width space from ASCII
The sanitiser held a literal U+200B, invisible in review and easy to lose in a copy. String.fromCharCode(0x200b) gives the same value in plain ASCII, as TechAPI's final check now does.
1 parent d32a14b commit 4cbad8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/final-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
// The check job ran the PR's code, so its report is untrusted here:
193193
// drop every @ and break issue references and issue/PR links, so the
194194
// comment can neither mention anyone nor cross-reference anything.
195-
const zw = '​';
195+
const zw = String.fromCharCode(0x200b); // zero-width space
196196
const body = (process.env.BODY || '')
197197
.replace(/@/g, '')
198198
.replace(/(?<!&)#(?=\d+\b)/g, `#${zw}`)

0 commit comments

Comments
 (0)