From 5a35f0d320ffe12245a2f7bcbe9c752620484f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Gergely?= Date: Sat, 7 May 2022 11:30:33 +0200 Subject: [PATCH] FIX: CSV export quote should comply rfc4180. Related to #791. --- modules/ui/markers-overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/markers-overview.js b/modules/ui/markers-overview.js index 8ed5bba5..5570ffb9 100644 --- a/modules/ui/markers-overview.js +++ b/modules/ui/markers-overview.js @@ -171,7 +171,7 @@ function overviewMarkers() { function exportMarkers() { const headers = "Id,Type,Icon,Name,Note,X,Y\n"; - const quote = s => '"' + s.replace('"', "'") + '"'; + const quote = s => '"' + s.replaceAll('"', '""') + '"'; const body = pack.markers.map(marker => { const {i, type, icon, x, y} = marker;