Fix Darcs patch author parsing
This commit is contained in:
parent
a50de1fe88
commit
edaf141359
1 changed files with 2 additions and 2 deletions
|
@ -302,8 +302,8 @@ readPatch path hash = do
|
||||||
Right mi -> loop pih (miPatches mi) (Just $ miPrevious mi)
|
Right mi -> loop pih (miPatches mi) (Just $ miPrevious mi)
|
||||||
email = maybe (fail "invalid email") pure . emailAddress . encodeUtf8
|
email = maybe (fail "invalid email") pure . emailAddress . encodeUtf8
|
||||||
author = (,)
|
author = (,)
|
||||||
<$> A.takeWhile1 (const True)
|
<$> (T.stripEnd <$> A.takeWhile1 (/= '<'))
|
||||||
<* " <"
|
<* A.skip (== '<')
|
||||||
<*> (A.takeWhile1 (/= '>') >>= email)
|
<*> (A.takeWhile1 (/= '>') >>= email)
|
||||||
<* A.skip (== '>')
|
<* A.skip (== '>')
|
||||||
mkedit (file, hunks) =
|
mkedit (file, hunks) =
|
||||||
|
|
Loading…
Reference in a new issue