Docx reader: small change to Fields hyperlink parser
Previously, unquoted string required a space at the end of the line (and consumed it). Now we either take a space (and don't consume it), or end of input.
This commit is contained in:
parent
e1cc9d9abc
commit
736c2c554f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ quotedString = do
|
|||
concat <$> manyTill inQuotes (try (char '"'))
|
||||
|
||||
unquotedString :: Parser String
|
||||
unquotedString = manyTill anyChar (try space)
|
||||
unquotedString = manyTill anyChar (try $ lookAhead space $> () <|> eof)
|
||||
|
||||
fieldArgument :: Parser String
|
||||
fieldArgument = quotedString <|> unquotedString
|
||||
|
|
Loading…
Add table
Reference in a new issue