Update rubygems with latest upstream changes

Closes: https://github.com/ruby/ruby/pull/2154
This commit is contained in:
David Rodríguez 2019-04-26 13:26:21 +02:00 committed by Hiroshi SHIBATA
parent a15f7dd1fb
commit d0a5467320
28 changed files with 200 additions and 228 deletions

View file

@ -208,7 +208,7 @@ use with other commands.
def name_pattern(args)
args << '' if args.empty?
if args.length == 1 and args.first =~ /\A\/(.*)\/(i)?\z/m
if args.length == 1 and args.first =~ /\A(.*)(i)?\z/m
flags = $2 ? Regexp::IGNORECASE : nil
Regexp.new $1, flags
else