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
This commit is contained in:
Codex
2026-09-11 10:12:13 +03:00
parent 0a0a9f0f4c
commit b9e40aebc2
+4 -3
View File
@@ -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: значащий пробел больше не восстанавливается',
}],
},