Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Oct 6, 2023
1 parent 1450055 commit 593f548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/transformation/CsvExport.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public String of(final String fields, final String separator) {
try {
Object value = JsonPath.read(Configuration.defaultConfiguration()
.jsonProvider().parse(org.toString()), "$." + field);
return String.format("\"%s\"",
value.toString().replaceAll("\"", "\"\""));
return separator==DEFAULT_SEPARATOR ? String.format("\"%s\"",
value.toString().replaceAll("\"", "\"\"")) : value.toString();
}
catch (PathNotFoundException x) {
Logger.trace(x.getMessage());
Expand Down

0 comments on commit 593f548

Please sign in to comment.