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

Fix polyline and polygon points parsing #687

Merged
merged 1 commit into from
May 14, 2020

Conversation

aapng
Copy link

@aapng aapng commented May 11, 2020

Handling of numbers in scientific notation in parsePoints used to be
incorrect, because a number could be broken by an exponent minus sign,
resulting in incorrect values.

E.g. '2.5e-1' -> '2.5e', '-1'.

String-splitting-based parsing is replaced with a simpler use of Scanner, otherwise keeping the behaviour, esp. error handling, unchanged.

Handling of numbers in scientific notation in `parsePoints` used to be
incorrect, because a number could be broken by an exponent minus sign,
resulting in incorrect values.

E.g. '2.5e-1' -> '2.5e', '-1'.
@ystrot ystrot self-assigned this May 14, 2020
@ystrot ystrot added this to the 0.9.7 milestone May 14, 2020
@ystrot ystrot merged commit c7c7826 into exyte:master May 14, 2020
@ystrot
Copy link
Member

ystrot commented May 14, 2020

Thanks for your work!

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.

3 participants