@ztimson/utils 0.23.18 → 0.23.19

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.cjs CHANGED
@@ -744,7 +744,7 @@ ${opts.message || this.desc}`;
744
744
  const value2 = dotNotation(row, h);
745
745
  if (value2 == null) return "";
746
746
  if (typeof value2 == "object") return `"${JSONSanitize(value2).replaceAll('"', '""')}"`;
747
- if (typeof value2 == "string" && /[\n"]/g.test(value2)) return `"${value2.replaceAll('"', '""')}"`;
747
+ if (typeof value2 == "string" && /[\n",]/g.test(value2)) return `"${value2.replaceAll('"', '""')}"`;
748
748
  return value2;
749
749
  }).join(","))
750
750
  ].join("\n");