Skip to content

Commit

Permalink
allow use of host:port in a FROM instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
petitlapin committed Oct 29, 2021
1 parent 57c2db8 commit 6b7bebd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Language/Docker/Parser/From.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ import Language.Docker.Syntax

parseRegistry :: (?esc :: Char) => Parser Registry
parseRegistry = do
domain <- someUnless "a domain name" (== '.')
void $ char '.'
tld <- someUnless "a TLD" (== '/')
registry <- someUnless "a registry" (== '/')
void $ char '/'
return $ Registry (domain <> "." <> tld)
return $ Registry (registry)

parsePlatform :: (?esc :: Char) => Parser Platform
parsePlatform = do
Expand Down

0 comments on commit 6b7bebd

Please sign in to comment.