Fix CRLF line ending handling in list import

This commit is contained in:
Thomas Weber committed 2021-04-21 15:21:12 -05:00
1 parent f43d1e5c90
commit bbf24c66f5
1 file changed
+1 -1
+1 -1
View File
@@ -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