fix parsing of empty content identifier
Seems very unlikely an empty content identifier would be used, but quickcheck found this bug.
This commit is contained in:
parent
9887a378fe
commit
1f6339ade7
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ parseContentIdentifierList :: A.Parser [ContentIdentifier]
|
|||
parseContentIdentifierList = reverse . catMaybes <$> valueparser []
|
||||
where
|
||||
valueparser l = do
|
||||
b <- A8.takeWhile1 (/= ' ')
|
||||
b <- A8.takeWhile (/= ' ')
|
||||
let cid = if "!" `S8.isPrefixOf` b
|
||||
then ContentIdentifier <$> fromB64Maybe' (S.drop 1 b)
|
||||
else Just $ ContentIdentifier b
|
||||
|
|
Loading…
Reference in a new issue