Skip to content

Commit

Permalink
Update lib/uri/common.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Nobuyoshi Nakada <[email protected]>
  • Loading branch information
hsbt and nobu authored Aug 6, 2024
1 parent b82842e commit 238afb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uri/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def self.parser=(parser = RFC3986_PARSER)
self.parser = RFC3986_PARSER

def self.const_missing(const)
if RFC2396_PARSER.regexp[const]
if value = RFC2396_PARSER.regexp[const]
warn "URI::#{const} is obsolete. Use RFC2396_PARSER.regexp[#{const.inspect}] explicitly.", uplevel: 1 if $VERBOSE
RFC2396_PARSER.regexp[const]
value
else
super
end
Expand Down

0 comments on commit 238afb9

Please sign in to comment.