mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(formatters): remove empty lines from parsed string output
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user