Skip to content

Commit

Permalink
Fix CSV bug.
Browse files Browse the repository at this point in the history
Got the condition on the takeWhile wrong during a refactor.
  • Loading branch information
mchav committed Jan 17, 2025
1 parent 729c413 commit eb888a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/DataFrame/IO/CSV.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ field c =
unquotedField :: Char -> Parser C.ByteString
unquotedField sep =
takeWhile nonTerminal <?> "unquoted field"
where nonTerminal = (`S.member` S.fromList [sep, '\n', '\r', '"'])
where nonTerminal = (`S.notMember` S.fromList [sep, '\n', '\r', '"'])

insideQuotes :: Parser C.ByteString
insideQuotes =
Expand Down

0 comments on commit eb888a4

Please sign in to comment.