File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ derive instance genericHost ∷ Generic Host _
36
36
instance showHost ∷ Show Host where show = genericShow
37
37
38
38
parser ∷ Parser Host
39
- parser = ipv6AddressParser <|> ipv4AddressParser <|> try regNameParser
39
+ parser = try ipv6AddressParser <|> try ipv4AddressParser <|> regNameParser
40
40
41
41
-- TODO: this is much too forgiving right now
42
42
ipv6AddressParser ∷ Parser Host
Original file line number Diff line number Diff line change @@ -162,6 +162,16 @@ main = runTest $ suite "Data.URI" do
162
162
Nothing )
163
163
Nothing
164
164
Nothing ))
165
+ testIsoURIRef
166
+ " https://1a.example.com"
167
+ (Left
168
+ (URI
169
+ (Just (Scheme " https" ))
170
+ (HierarchicalPart
171
+ (Just (Authority Nothing [(Tuple (NameAddress " 1a.example.com" ) Nothing )] ))
172
+ Nothing )
173
+ Nothing
174
+ Nothing ))
165
175
testIsoURIRef
166
176
" http://en.wikipedia.org/wiki/URI_scheme"
167
177
(Left
You can’t perform that action at this time.
0 commit comments