mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
Update rubygems with latest upstream changes
Closes: https://github.com/ruby/ruby/pull/2154
This commit is contained in:
parent
a15f7dd1fb
commit
d0a5467320
28 changed files with 200 additions and 228 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue