We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
e
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)
Failure(Error { input: "pisode", code: Digit })
("episode", 123.0)
The nom::number::complete::double parser is similarly broken
nom::number::complete::double
This is something to do with scientific notation (e.g. 123e6) handling
123e6
The text was updated successfully, but these errors were encountered:
Does removing the cut solve the problem?
nom/src/number/complete.rs
Line 1260 in 7afe3a8
this will make the:
Lines 1257 to 1261 in 7afe3a8
None
Here is a test which successfully passes:
#[test] fn _1725_test() { assert_eq!( nom::number::complete::recognize_float::<_, (_, _)>("123episode"), Ok(("episode", "123")) ); }
Sorry, something went wrong.
No branches or pull requests
This code
Fails with
Failure(Error { input: "pisode", code: Digit })
instead of returning("episode", 123.0)
The
nom::number::complete::double
parser is similarly brokenThis is something to do with scientific notation (e.g.
123e6
) handlingThe text was updated successfully, but these errors were encountered: