From eb41d6eb1a28f99428c7e1880b287ece1e91f005 Mon Sep 17 00:00:00 2001 From: Dale Cannon Date: Fri, 22 Sep 2023 11:45:28 +0100 Subject: [PATCH] Add other line break character to regex --- common/static/common/js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/static/common/js/util.js b/common/static/common/js/util.js index e20012f51..e891ba133 100644 --- a/common/static/common/js/util.js +++ b/common/static/common/js/util.js @@ -7,7 +7,7 @@ const nodeListForEach = (nodes, callback) => { } } -const newLine = /\n/g; +const newLine = /[\n\r]/g; const removeNewLine = (str) => str.replace(newLine, "") const cleanResults = (results) => {