diff --git a/src/Language/Docker/Parser/From.hs b/src/Language/Docker/Parser/From.hs index 1e14de1..13d1869 100644 --- a/src/Language/Docker/Parser/From.hs +++ b/src/Language/Docker/Parser/From.hs @@ -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