diff --git a/CardParser.hs b/CardParser.hs index b9deb2e..bf5471c 100644 --- a/CardParser.hs +++ b/CardParser.hs @@ -87,12 +87,12 @@ stats_line = do sets_line :: Parser [(String, Rarity)] sets_line = do - sets <- sepBy set (string ", ") + sets <- sepBy1 set (string ", ") return sets set :: Parser (String, Rarity) set = do - set' <- many1 (noneOf "\n-") + set' <- many1 $ oneOf $ ['A'..'Z'] ++ ['0'..'9'] char '-' rarity' <- oneOf "LCURMS" case rarity' of