From b145d6e538d3d44c4fd6b8a806dc1590f3ec473e Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Sun, 6 Jun 2021 00:25:18 -0400 Subject: [PATCH] asdsa --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 90987b2..d20e199 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ function diff(current, checked) { app.post("/updates/:project(\\w+)", (req, res) => { let project_id = req.params['project']; - const body = req.body || ""; + const body = String(req.body) || ""; let adjustedBody = body.replace(/\r/, ""); let indexes = get_indexes(project_id); let difference = diff(indexes, adjustedBody);