Skip to content

Commit

Permalink
fix(parser): ignore leading zero in base-10 ints
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Dec 28, 2020
1 parent 32eac6a commit c4dc96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class KdlParser extends EmbeddedActionsParser {
{
ALT: () => {
const number = this.CONSUME(Float).image.replace(/_/g, '')
return parseFloat(number)
return parseFloat(number, 10)
}
},
{
Expand Down

0 comments on commit c4dc96e

Please sign in to comment.