[前][次][番号順一覧][スレッド一覧]

ruby-changes:67503

From: opak <ko1@a...>
Date: Tue, 31 Aug 2021 19:36:37 +0900 (JST)
Subject: [ruby-changes:67503] 0925fddc80 (master): [ruby/psych] Update lib/psych/scalar_scanner.rb

https://git.ruby-lang.org/ruby.git/commit/?id=0925fddc80

From 0925fddc80646b9411b00e7f601aa3d9c48d66ec Mon Sep 17 00:00:00 2001
From: opak <opak.alexandr@g...>
Date: Tue, 1 Jun 2021 10:11:04 +0200
Subject: [ruby/psych] Update lib/psych/scalar_scanner.rb

https://github.com/ruby/psych/commit/64cc239557

Co-authored-by: Olle Jonsson <olle.jonsson@g...>
---
 ext/psych/lib/psych/scalar_scanner.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/psych/lib/psych/scalar_scanner.rb b/ext/psych/lib/psych/scalar_scanner.rb
index 383a8ac..5fafaf3 100644
--- a/ext/psych/lib/psych/scalar_scanner.rb
+++ b/ext/psych/lib/psych/scalar_scanner.rb
@@ -15,7 +15,7 @@ module Psych https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych/scalar_scanner.rb#L15
     # 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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]