From b9e40aebc2abd370a2b3f81089c1420401b24899 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 11 Sep 2026 09:31:19 +0300 Subject: [PATCH] fix(mutants): a multi-line anchor is built from escaped parts The registry lives in a JavaScript file, so an anchor that contains a newline has to be written with escapes; pasting the real line break broke the module and --check reported nothing while exiting non-zero. Issue: #526 User-Visible: no --- scripts/mutation-gate.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/mutation-gate.mjs b/scripts/mutation-gate.mjs index 581da2e8..56a906dd 100644 --- a/scripts/mutation-gate.mjs +++ b/scripts/mutation-gate.mjs @@ -3631,9 +3631,10 @@ const MUTANT_DEFINITIONS = [ + 'считать сэкономленные байты', patches: [{ file: 'scripts/css-template-minifier.mjs', - find: ' if (pendingSpace && out && !TIGHT_AFTER.has(out.at(-1))' + ' && !TIGHT_BEFORE.has(char)) { - out += ' '; - }', + find: ' if (pendingSpace && out && !TIGHT_AFTER.has(out.at(-1))' + + ' && !TIGHT_BEFORE.has(char)) {\n' + + " out += ' ';\n" + + ' }', replace: ' void pendingSpace; // mutant: значащий пробел больше не восстанавливается', }], },