We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f71222 commit 64cc239Copy full SHA for 64cc239
lib/psych/scalar_scanner.rb
@@ -16,7 +16,7 @@ class ScalarScanner
16
# Taken from http://yaml.org/type/int.html
17
INTEGER = /^(?:[-+]?0b[0-1_,]+ (?# base 2)
18
|[-+]?0[0-7_,]+ (?# base 8)
19
- |[-+]?(?:0|[1-9]([0-9]|,[0-9]|_[0-9])*) (?# base 10)
+ |[-+]?(?:0|[1-9](?:[0-9]|,[0-9]|_[0-9])*) (?# base 10)
20
|[-+]?0x[0-9a-fA-F_,]+ (?# base 16))$/x
21
22
attr_reader :class_loader
0 commit comments