Skip to content

Commit 64cc239

Browse files
Update lib/psych/scalar_scanner.rb
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
1 parent 8f71222 commit 64cc239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/psych/scalar_scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ScalarScanner
1616
# Taken from http://yaml.org/type/int.html
1717
INTEGER = /^(?:[-+]?0b[0-1_,]+ (?# base 2)
1818
|[-+]?0[0-7_,]+ (?# base 8)
19-
|[-+]?(?:0|[1-9]([0-9]|,[0-9]|_[0-9])*) (?# base 10)
19+
|[-+]?(?:0|[1-9](?:[0-9]|,[0-9]|_[0-9])*) (?# base 10)
2020
|[-+]?0x[0-9a-fA-F_,]+ (?# base 16))$/x
2121

2222
attr_reader :class_loader

0 commit comments

Comments
 (0)