We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c8ec89 commit 7292aa9Copy full SHA for 7292aa9
src/parser.coffee
@@ -188,7 +188,7 @@ class exports.Parser extends events
188
# push a clone so that the node in the children array can receive the #name property while the original obj can do without it
189
objClone = {}
190
for own key of obj
191
- objClone[key] = obj[key]
+ objClone[key] = obj[key] if isValidKey(key)
192
s[@options.childkey].push objClone
193
delete obj["#name"]
194
# re-check whether we can collapse the node now to just the charkey value
0 commit comments