Bug #5116 ยป fix_uri_parser_documentation.patch
lib/uri/common.rb | ||
---|---|---|
#
|
||
# == Examples
|
||
#
|
||
# p = URI::Parser.new(:ESCPAED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
|
||
# p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})")
|
||
# u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
|
||
# URI.parse(u.to_s) #=> raises URI::InvalidURIError
|
||
#
|