fix(formatters): remove empty lines from parsed string output

This commit is contained in:
Viren070
2025-04-30 00:59:44 +01:00
parent 006154de69
commit fa5898286d
+5 -1
View File
@@ -182,7 +182,11 @@ function parseString(str: string, value: ParseValue) {
re.lastIndex = index;
}
return str.replace(/\\n/g, '\n');
return str
.replace(/\\n/g, '\n')
.split('\n')
.filter((line) => line.trim() !== '')
.join('\n');
}
function modifier(