Skip to content

Commit

Permalink
[ExportToCSV] Ensure Consistent Line Terminators in Generated CSV Fil…
Browse files Browse the repository at this point in the history
…es (#37451)

* fix

* RN

* RN

* RN

* RN

* 97
  • Loading branch information
shmuel44 authored Dec 2, 2024
1 parent 9cbcb77 commit 878bb38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Packs/CommonScripts/ReleaseNotes/1_15_97.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Scripts

##### ExportToCSV

Improved consistency of the script output by removing carriage return (\r) characters from the end of lines.
2 changes: 1 addition & 1 deletion Packs/CommonScripts/Scripts/ExportToCSV/ExportToCSV.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function convertToCSV(objArray, headers) {
}

// create file content
var fileContent = headers.join() + '\r';
var fileContent = headers.join();
for (var i = 0; i < rows.length; i++) {
var line = rows[i].join();
fileContent += '\n' + line ;
Expand Down
2 changes: 1 addition & 1 deletion Packs/CommonScripts/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Common Scripts",
"description": "Frequently used scripts pack.",
"support": "xsoar",
"currentVersion": "1.15.96",
"currentVersion": "1.15.97",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 878bb38

Please sign in to comment.