summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropak <opak.alexandr@gmail.com>2021-06-01 10:11:04 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:34:36 +0900
commit0925fddc80646b9411b00e7f601aa3d9c48d66ec (patch)
tree9392fae3030ae8eed3ddf4ba174c3ff2dcd2f2f3
parent44353d0dee76a547629a6ab978fdaead9b5f79fb (diff)
[ruby/psych] Update lib/psych/scalar_scanner.rb
https://github.com/ruby/psych/commit/64cc239557 Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
-rw-r--r--ext/psych/lib/psych/scalar_scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/scalar_scanner.rb b/ext/psych/lib/psych/scalar_scanner.rb
index 383a8acc1b8..5fafaf30b3d 100644
--- a/ext/psych/lib/psych/scalar_scanner.rb
+++ b/ext/psych/lib/psych/scalar_scanner.rb
@@ -15,7 +15,7 @@ module Psych
# 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