Fix indentation mapping

This commit is contained in:
Daniel Imms
2025-03-06 04:31:53 -08:00
parent 6a4e4d3db2
commit 4215782c25
42 changed files with 21147 additions and 21149 deletions

View File

@@ -16,7 +16,7 @@ const replaceStrings = [
'import { filepaths } from \'../../helpers/filepaths\';'
],
];
const indentSearch = [20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1].map(e => new RegExp('^' + ' '.repeat(e * 2), 'g'));
const indentSearch = [20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1].map(e => new RegExp('^' + ' '.repeat(e * 2), 'gm'));
const indentReplaceValue = [20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1].map(e => '\t'.repeat(e));
const specSpecificReplaceStrings = new Map([