From bbf24c66f55edc6aadbd2acbd28fca6fb8e505fd Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Wed, 21 Apr 2021 15:21:12 -0500 Subject: [PATCH] Fix CRLF line ending handling in list import --- src/containers/monitor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/monitor.jsx b/src/containers/monitor.jsx index 0ae93f379..c2da43425 100644 --- a/src/containers/monitor.jsx +++ b/src/containers/monitor.jsx @@ -176,7 +176,7 @@ class Monitor extends React.Component { } let newListValue; if (isNaN(columnNumber) || numberOfColumns === 1) { - newListValue = text.split('\n'); + newListValue = text.replace(/\r/g, '').split('\n'); } else { newListValue = rows.map(row => row[columnNumber - 1]) .filter(item => typeof item === 'string'); // CSV importer can leave undefineds