Commit ca8d52fd authored by Juorder Antonio's avatar Juorder Antonio

fix the way on how split the items when upload a file that contains multiple accounts for adding

parent 1478ab0e
1465307111 1465787195
\ No newline at end of file \ No newline at end of file
module.exports = {"main":{"js":"/749887bundle.js"}} module.exports = {"main":{"js":"/430297bundle.js"}}
\ No newline at end of file \ No newline at end of file
...@@ -144,8 +144,9 @@ export default class ImportMassiveModal extends React.Component { ...@@ -144,8 +144,9 @@ export default class ImportMassiveModal extends React.Component {
} }
extractCols(data, flagDefault) { extractCols(data, flagDefault) {
let splitConditio = /\r\n|\r|\n/g;
let hasError = false; let hasError = false;
const dataArray = data.split('\r\n'); const dataArray = data.split(splitConditio);
const isEmpty = dataArray.some((pos) => { const isEmpty = dataArray.some((pos) => {
if (pos === '') { if (pos === '') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment