mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-01 04:09:17 +00:00
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:
@@ -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: значащий пробел больше не восстанавливается',
|
||||
}],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user