Skip to content

Commit

Permalink
[#9071] Instructor: enroll students: blank lines processed by back-en…
Browse files Browse the repository at this point in the history
…d during enrollment [#9073]
  • Loading branch information
tanhengyeow authored Aug 22, 2018
1 parent 56190f7 commit 9028189
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/webapp/dev/js/common/instructorEnroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function getUserDataRows(spreadsheetData) {
// needs to check for '' as an initial empty row with null values will be converted to e.g. "||||" after .map
return spreadsheetData.filter(row => (!row.every(cell => cell === null || cell === '')))
.map(row => row.join('|'))
.map(row => row.replace(/\n|\r/g, ''))
.join('\n');
}

Expand Down

0 comments on commit 9028189

Please sign in to comment.