Project

General

Profile

Bug #5116 ยป fix_uri_parser_documentation.patch

agrimm (Andrew Grimm), 07/30/2011 10:38 AM

View differences:

lib/uri/common.rb
86 86
    #
87 87
    # == Examples
88 88
    #
89
    #   p = URI::Parser.new(:ESCPAED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
89
    #   p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})")
90 90
    #   u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
91 91
    #   URI.parse(u.to_s) #=> raises URI::InvalidURIError
92 92
    #
93
-