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

[ruby/uri] Include RFC2396_REGEXP module directly

REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include
REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo.

https://github.com/ruby/uri/commit/ed6ded9c80
This commit is contained in:
Peter Zhu 2022-04-14 14:02:00 -04:00 committed by git
parent c94f964e3f
commit eab354e17b
2 changed files with 3 additions and 3 deletions

View file

@ -13,6 +13,8 @@ require_relative "rfc2396_parser"
require_relative "rfc3986_parser"
module URI
include RFC2396_REGEXP
REGEXP = RFC2396_REGEXP
Parser = RFC2396_Parser
RFC3986_PARSER = RFC3986_Parser.new
@ -62,8 +64,6 @@ module URI
module_function :make_components_hash
end
include REGEXP
module Schemes
end
private_constant :Schemes

View file

@ -15,7 +15,7 @@ module URI
# RFC6068, the mailto URL scheme.
#
class MailTo < Generic
include REGEXP
include RFC2396_REGEXP
# A Default port of nil for URI::MailTo.
DEFAULT_PORT = nil