We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eafc475 commit b6f5833Copy full SHA for b6f5833
lib/uri/common.rb
@@ -34,7 +34,7 @@ def self.parser=(parser = RFC3986_PARSER)
34
end
35
36
Parser.new.regexp.each_pair do |sym, str|
37
- remove_const(sym) if const_defined?(sym)
+ remove_const(sym) if const_defined?(sym, false)
38
const_set(sym, str)
39
40
lib/uri/rfc2396_parser.rb
@@ -539,7 +539,7 @@ def convert_to_uri(uri)
539
540
# Backward compatibility for URI::REGEXP::PATTERN::*
541
RFC2396_Parser.new.pattern.each_pair do |sym, str|
542
- unless RFC2396_REGEXP::PATTERN.const_defined?(sym)
+ unless RFC2396_REGEXP::PATTERN.const_defined?(sym, false)
543
RFC2396_REGEXP::PATTERN.const_set(sym, str)
544
545
0 commit comments