Skip to content

Commit f651583

Browse files
authored
Fix parsing fully qualified domain names (#2670)
1 parent 5e50f14 commit f651583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dhall/src/Dhall/Parser/Token.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ decOctet =
835835
predicate c = '\x30' <= c && c <= '\x35'
836836

837837
domain :: Parser Text
838-
domain = domainLabel <> star ("." <> domainLabel ) <> option "."
838+
domain = domainLabel <> star (try ("." <> domainLabel )) <> option "."
839839

840840
domainLabel :: Parser Text
841841
domainLabel = plus alphaNum_ <> star (plus "-" <> plus alphaNum_)

0 commit comments

Comments
 (0)