diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-11-13 12:01:06 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-11-14 02:20:04 +0000 |
commit | 1d6c986104afa77f5874cd2f8441682e59b2097a (patch) | |
tree | cb472ae9646d422267ef5fdde669adaed2ce831a /lib/uri/rfc2396_parser.rb | |
parent | e97dcf53a2daea113eed4823dced90998d172684 (diff) |
[ruby/uri] Restore constants like URI::REGEXP::PATTERN::IPV6ADDR
https://github.com/ruby/uri/commit/ee9a38701a
Diffstat (limited to 'lib/uri/rfc2396_parser.rb')
-rw-r--r-- | lib/uri/rfc2396_parser.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb index a56ca34267..c112b1b368 100644 --- a/lib/uri/rfc2396_parser.rb +++ b/lib/uri/rfc2396_parser.rb @@ -536,4 +536,11 @@ module URI end end # class Parser + + # Backward compatibility for URI::REGEXP::PATTERN::* + RFC2396_Parser.new.pattern.each_pair do |sym, str| + unless RFC2396_REGEXP::PATTERN.const_defined?(sym) + RFC2396_REGEXP::PATTERN.const_set(sym, str) + end + end end # module URI |