mirror of
https://github.com/byteverse/colonnade.git
synced 2026-09-10 13:34:56 +02:00
properly escape carriage returns
This commit is contained in:
parent
3bfd8265bc
commit
e17df21a2b
@ -54,7 +54,7 @@ encodeRow = id
|
||||
. coerce
|
||||
|
||||
escape :: ByteString -> Escaped ByteString
|
||||
escape t = case B.find (\c -> c == newline || c == comma || c == doubleQuote) t of
|
||||
escape t = case B.find (\c -> c == newline || c == cr || c == comma || c == doubleQuote) t of
|
||||
Nothing -> Escaped t
|
||||
Just _ -> escapeAlways t
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user