Corrected esc-quote and esc-dbl-quote
This commit is contained in:
@@ -101,10 +101,10 @@
|
|||||||
)))
|
)))
|
||||||
|
|
||||||
(define (esc-quote str)
|
(define (esc-quote str)
|
||||||
(string-replace str "'" "\\'"))
|
(string-replace (string-replace str "\\" "\\\\") "'" "\\'"))
|
||||||
|
|
||||||
(define (esc-double-quote str)
|
(define (esc-double-quote str)
|
||||||
(string-replace str "\"" "\\\""))
|
(string-replace (string-replace str "\\" "\\\\") "\"" "\\\""))
|
||||||
|
|
||||||
(define (fromJson str)
|
(define (fromJson str)
|
||||||
(with-input-from-string str read-json))
|
(with-input-from-string str read-json))
|
||||||
|
|||||||
Reference in New Issue
Block a user