Skip to content

Commit

Permalink
fix: Fixes stringify skipping the sixth element of a list (close #451)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Sep 10, 2024
1 parent 593f681 commit 7dbc4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ export function stringify(
if (Array.isArray(property)) {
ret.push(
`${parens ? "(" : ""}${property
.map((p) => stringify(p, depth++))
.map((p) => stringify(p, depth + 1))
.join(joiner)}${parens ? ")" : ""}`
);
} else if (typeof property == "object") {
for (const value of Object.values(property)) {
ret.push(stringify(value, depth++));
ret.push(stringify(value, depth + 1));
}
}
return ret.join(" ");
Expand Down

0 comments on commit 7dbc4a9

Please sign in to comment.