mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[Bug #19087] Disallow successive underscores in Complex string
This commit is contained in:
parent
914cf26d6e
commit
c0dc717c45
Notes:
git
2022-12-01 16:36:04 +00:00
2 changed files with 25 additions and 3 deletions
|
@ -1751,9 +1751,9 @@ read_digits(const char **s, int strict,
|
|||
|
||||
while (isdecimal(**s) || **s == '_') {
|
||||
if (**s == '_') {
|
||||
if (strict) {
|
||||
if (us)
|
||||
return 0;
|
||||
if (us) {
|
||||
if (strict) return 0;
|
||||
break;
|
||||
}
|
||||
us = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue