Skip to content

Commit

Permalink
[ruby/psych] Update lib/psych/scalar_scanner.rb
Browse files Browse the repository at this point in the history
ruby/psych@64cc239557

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
  • Loading branch information
2 people authored and hsbt committed Aug 31, 2021
1 parent 44353d0 commit 0925fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/psych/lib/psych/scalar_scanner.rb
Expand Up @@ -15,7 +15,7 @@ class ScalarScanner
# Taken from http://yaml.org/type/int.html
INTEGER = /^(?:[-+]?0b[0-1_,]+ (?# base 2)
|[-+]?0[0-7_,]+ (?# base 8)
|[-+]?(?:0|[1-9]([0-9]|,[0-9]|_[0-9])*) (?# base 10)
|[-+]?(?:0|[1-9](?:[0-9]|,[0-9]|_[0-9])*) (?# base 10)
|[-+]?0x[0-9a-fA-F_,]+ (?# base 16))$/x

attr_reader :class_loader
Expand Down

0 comments on commit 0925fdd

Please sign in to comment.