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

Float parsing with trailing e broken #1725

Open
grantslatton opened this issue Jan 31, 2024 · 0 comments
Open

Float parsing with trailing e broken #1725

grantslatton opened this issue Jan 31, 2024 · 0 comments

Comments

@grantslatton
Copy link

rustc -V
rustc 1.75.0 (82e1608df 2023-12-21)
nom 7.1.3

This code

nom::number::complete::recognize_float("123episode")

Fails with Failure(Error { input: "pisode", code: Digit }) instead of returning ("episode", 123.0)

The nom::number::complete::double parser is similarly broken

This is something to do with scientific notation (e.g. 123e6) handling

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

No branches or pull requests

1 participant