@opendata-ai/openchart-vanilla 6.1.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -223,7 +223,7 @@ function exportCSV(data) {
223
223
  return rows.join("\n");
224
224
  }
225
225
  function csvEscape(value) {
226
- if (value.includes(",") || value.includes('"') || value.includes("\n")) {
226
+ if (value.includes(",") || value.includes('"') || value.includes("\n") || value.includes("\r")) {
227
227
  return `"${value.replace(/"/g, '""')}"`;
228
228
  }
229
229
  return value;
@@ -6117,7 +6117,7 @@ function resolveDarkMode3(mode) {
6117
6117
  return false;
6118
6118
  }
6119
6119
  function csvEscape2(value) {
6120
- if (value.includes(",") || value.includes('"') || value.includes("\n")) {
6120
+ if (value.includes(",") || value.includes('"') || value.includes("\n") || value.includes("\r")) {
6121
6121
  return `"${value.replace(/"/g, '""')}"`;
6122
6122
  }
6123
6123
  return value;