Skip to content

Conversation

joshestein
Copy link

Ignore commas when parsing numbers. Eventually this should be locale specific, but for now the ask is to simply parse numbers as if the commas are not present.

if (s === ',') {
// If we're in a number and not inside parenthesis include the comma
if (type === TokenType.NUM && parenDepth === 0) {
buffer += s;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this work if we have numbers inside brackets? For example:
10 * (a + 1,000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants