-
Notifications
You must be signed in to change notification settings - Fork 203
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
Error Parsing Integer with Leading/Trailing Underscore #442
Comments
👍, we're encountering this issue too. The bug was introduced between versions 3.0.2 and 3.1.0. For example, we're hitting this with a value like Our workaround for now is to downgrade to 3.0.2 from Ruby 2.7's default 3.1.0. |
I submitted a fix for it: #442 |
Woops, wrong issue number, sorry: #445 |
note that even with #438 merged in, there is still a regression with the string "0x_". It passes the regex validation, then the _ is stripped, and just "0x" is passed to
|
|
ScalarScanner.parse_int
usesInteger()
to parse items that match theINTEGER
regex. Strings with leading/trailing underscores will fail to parse, even though they match the regex.Example:
The text was updated successfully, but these errors were encountered: