aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/serve.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 64f25f0..e1770a3 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -794,6 +794,7 @@ Serve.prototype.composer = function (opts, cb) {
try {
content = JSON.parse(data.text)
} catch (err) {
+ data.text = String(data.text).replace(/\r\n/g, '\n')
content = {
type: 'post',
text: data.text,