Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Numeric Separators #185

Merged
merged 2 commits into from
Sep 8, 2017
Merged

Conversation

mhseiden
Copy link

@mhseiden mhseiden commented Sep 8, 2017

I can't say this is an actual problem...but it did grind my browser to a halt when I tried it out.

This makes the actual separator irrelevant by iterating through the input in reverse and prepending the characters and separator at the right time. It should also be a more efficient implementation than the previous regexp approach.

Also, sorry for the small amount of retabbing...my vim config kicked in automatically...

@inorganik inorganik merged commit 43b3b50 into inorganik:master Sep 8, 2017
@inorganik
Copy link
Owner

Although I don't think there's a use-case for numeric separators, it's a big improvement to drop the regex testing from that function. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants