mirror of
https://github.com/byteverse/colonnade.git
synced 2026-08-31 00:13:52 +02:00
properly escape carriage returns
This commit is contained in:
parent
3bfd8265bc
commit
e17df21a2b
@ -54,7 +54,7 @@ encodeRow = id
|
|||||||
. coerce
|
. coerce
|
||||||
|
|
||||||
escape :: ByteString -> Escaped ByteString
|
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
|
Nothing -> Escaped t
|
||||||
Just _ -> escapeAlways t
|
Just _ -> escapeAlways t
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user