We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb17ab commit 8a4e977Copy full SHA for 8a4e977
src/index.mjs
@@ -52,7 +52,7 @@ function build(input) {
52
53
function commit() {
54
if (!inTag) {
55
- if (field || (buffer = buffer.trim())) {
+ if (field || (buffer = buffer.replace(/^\s*\n+\s*|\s*\n+\s*$/g,''))) {
56
if (hasChildren++) out += ',';
57
out += field || JSON.stringify(buffer);
58
}
0 commit comments