ruby-changes:65044
From: Nobuyoshi <ko1@a...>
Date: Tue, 26 Jan 2021 10:30:55 +0900 (JST)
Subject: [ruby-changes:65044] 1e2a8f7c94 (master): vcs.rb: fix for baseruby 2.2
https://git.ruby-lang.org/ruby.git/commit/?id=1e2a8f7c94 From 1e2a8f7c945ddb93f083a320f6ad6536596a81ce Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 26 Jan 2021 10:30:02 +0900 Subject: vcs.rb: fix for baseruby 2.2 --- tool/lib/vcs.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 5a33d87..c5e75b9 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -599,7 +599,8 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L599 s[$2.to_i, 0] = "#{$1}#{$3}\n" when %r[^ +(\d+)(?:,(\d+))?d] n = $1.to_i - s[n..($2&.to_i || n)] = [] + e = $2 + s[n..(e ? e.to_i : n)] = [] end end s = s.join('') -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/