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

Number parsing: Allow to specify groupmark #1072

Closed
wants to merge 1 commit into from
Closed

Number parsing: Allow to specify groupmark #1072

wants to merge 1 commit into from

Conversation

barucden
Copy link

@barucden barucden commented Feb 5, 2023

This optional argument can be used to parse numbers containing thousand separators.

As suggested in the issue referenced below, the implementation just sets groupmark in the Parsers.Options constructor.

Resolves #626

@codecov
Copy link

codecov bot commented Feb 5, 2023

Codecov Report

Base: 90.22% // Head: 90.32% // Increases project coverage by +0.10% 🎉

Coverage data is based on head (6fffe3d) compared to base (cfb4ffb).
Patch coverage: 91.66% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1072      +/-   ##
==========================================
+ Coverage   90.22%   90.32%   +0.10%     
==========================================
  Files           9        9              
  Lines        2271     2275       +4     
==========================================
+ Hits         2049     2055       +6     
+ Misses        222      220       -2     
Impacted Files Coverage Δ
src/context.jl 89.26% <88.88%> (+0.75%) ⬆️
src/chunks.jl 91.30% <100.00%> (ø)
src/file.jl 94.42% <100.00%> (ø)
src/rows.jl 84.81% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bkamins
Copy link
Member

bkamins commented Feb 5, 2023

Thank you for submitting a PR :)

@bkamins bkamins requested a review from quinnj February 5, 2023 12:56
src/context.jl Outdated Show resolved Hide resolved
This optional argument can be used to parse numbers containing thousand
separators.

As suggested in the issue referenced below, the implementation just
sets `groupmark` in the `Parsers.Options` constructor.

Resolves #626
@barucden
Copy link
Author

barucden commented Feb 8, 2023

I added validation.

@barucden
Copy link
Author

Bump :)

@barucden
Copy link
Author

As far as I can tell, the very same functionality has been implemented and merged in #1093. Closing this one...

@barucden barucden closed this Jun 16, 2023
@barucden barucden deleted the groupmark branch June 16, 2023 10:51
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.

Ability to specify a thousands separator character
3 participants