Project

General

Profile

Bug #5177 ยป 0001-Fixing-typo-and-tt-s.patch

steveklabnik (Steve Klabnik), 08/13/2011 03:14 AM

View differences:

lib/uri/common.rb
78 78
    #
79 79
    # You can use the following keys:
80 80
    #
81
    #   * <tt>:ESCAPED</tt> (URI::PATTERN::ESCAPED in default)
82
    #   * <tt>:UNRESERVED</tt> (URI::PATTERN::UNRESERVED in default)
83
    #   * <tt>:DOMLABEL</tt> (URI::PATTERN::DOMLABEL in default)
84
    #   * <tt>:TOPLABEL</tt> (URI::PATTERN::TOPLABEL in default)
85
    #   * <tt>:HOSTNAME</tt> (URI::PATTERN::HOSTNAME in default)
81
    #   * :ESCAPED (URI::PATTERN::ESCAPED in default)
82
    #   * :UNRESERVED (URI::PATTERN::UNRESERVED in default)
83
    #   * :DOMLABEL (URI::PATTERN::DOMLABEL in default)
84
    #   * :TOPLABEL (URI::PATTERN::TOPLABEL in default)
85
    #   * :HOSTNAME (URI::PATTERN::HOSTNAME in default)
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
-