Corrected esc-quote and esc-dbl-quote

This commit is contained in:
2026-04-12 12:45:33 +02:00
parent 6566b04606
commit 1365ff08f5

View File

@@ -101,10 +101,10 @@
)))
(define (esc-quote str)
(string-replace str "'" "\\'"))
(string-replace (string-replace str "\\" "\\\\") "'" "\\'"))
(define (esc-double-quote str)
(string-replace str "\"" "\\\""))
(string-replace (string-replace str "\\" "\\\\") "\"" "\\\""))
(define (fromJson str)
(with-input-from-string str read-json))