Skip to content

Commit

Permalink
fix: include missed key check
Browse files Browse the repository at this point in the history
  • Loading branch information
markwhitfeld committed Apr 27, 2023
1 parent 4c8ec89 commit 7292aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class exports.Parser extends events
# push a clone so that the node in the children array can receive the #name property while the original obj can do without it
objClone = {}
for own key of obj
objClone[key] = obj[key]
objClone[key] = obj[key] if isValidKey(key)
s[@options.childkey].push objClone
delete obj["#name"]
# re-check whether we can collapse the node now to just the charkey value
Expand Down

0 comments on commit 7292aa9

Please sign in to comment.