shrine icon indicating copy to clipboard operation
shrine copied to clipboard

Fix "warning: URI.regexp is obsolete"

Open y-yagi opened this issue 2 years ago • 0 comments

URI.regexp is obsolete now.

$ ruby -w -e 'require "net/http"; URI.regexp'
-e:1: warning: URI.regexp is obsolete

This changed to use URI::DEFAULT_PARSER.make_regexp that use inside URI.regexp instead of URI.regexp. https://github.com/ruby/uri/blob/6bc8f666219e519c1001673c15adab5182ff05ef/lib/uri/common.rb#L294-L297

y-yagi avatar Jun 21 '22 08:06 y-yagi