Skip to content

Commit

Permalink
fixup! squash! PATCH: AR-3464 Report on Terms-of-Use Violations
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagedman committed Jan 26, 2025
1 parent 828c185 commit 86c6fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/seeking-alpha/utils/csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function joinRecordIntoRow(record) {
// @param field [Stringy]
// @returns [Stringy] Escaped only if necessary
function escapeCSVField(field) {
if (field.match(/[,"\r\n]/)) {
if (/[,"\r\n]/.test(field)) {
const escaped = field.replace(/"/g, '""');
return `"${escaped}"`;
}
Expand Down

0 comments on commit 86c6fe2

Please sign in to comment.