Skip to content

Commit

Permalink
fix extraData bad column
Browse files Browse the repository at this point in the history
  • Loading branch information
yqs112358 committed Aug 6, 2024
1 parent 616e3a6 commit 8f74fc4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class CsvExportAdapter : AbstractExportAdapter() {
val y = action.pos.y
val z = action.pos.z
val worldName: String = action.world?.toString() ?: ""
val extraData: String = if(action.extraData == null) "" else {
val extraData: String = if (action.extraData == null) {
""
} else {
// Escape " in data and finally wrap "" to avoid bad column
val escapedExtraData = action.extraData!!.replace("\"", "\"\"")
"\"${escapedExtraData}\""
Expand Down

0 comments on commit 8f74fc4

Please sign in to comment.