1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use Regexp#match instead of #match for 1.9 BASERUBY support

This commit is contained in:
Jeremy Evans 2019-05-29 18:40:03 -07:00
parent d2ba80b5df
commit f0ded36693

View file

@ -507,7 +507,7 @@ class VCS
end
rev unless rev.empty?
end
unless /./.match?(from ||= branch_beginning(url))
unless /./.match(from ||= branch_beginning(url))
raise "cannot find the beginning revision of the branch"
end
range = [from, (to || 'HEAD')].join('^..')