Skip to content

Commit

Permalink
stat string is trimmed
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbuick committed Dec 21, 2024
1 parent 5942cb5 commit 2ff9959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zss/lang/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function transformNode(ast: CodeNode): SourceNode {
case NODE.STAT:
if (context.isfirststat) {
context.isfirststat = false
const words = ast.value.split(` `).map(writestring)
const words = ast.value.trim().split(' ').map(writestring)
return write(ast, [` `, writeApi(ast, `stat`, words), `;\n`])
}
return write(ast, ` // skipped ${ast.value}\n`)
Expand Down

0 comments on commit 2ff9959

Please sign in to comment.