diff --git a/lib/addressable/uri.rb b/lib/addressable/uri.rb index e8d6c429..b91d513a 100644 --- a/lib/addressable/uri.rb +++ b/lib/addressable/uri.rb @@ -48,7 +48,7 @@ module CharacterClasses PCHAR = UNRESERVED + SUB_DELIMS + "\\:\\@" SCHEME = ALPHA + DIGIT + "\\-\\+\\." HOST = UNRESERVED + SUB_DELIMS + "\\[\\:\\]" - AUTHORITY = PCHAR + "\\[\\:\\]" + AUTHORITY = PCHAR + "\\[\\]" PATH = PCHAR + "\\/" QUERY = PCHAR + "\\/\\?" FRAGMENT = PCHAR + "\\/\\?"