From 36bb2effedbc6e89600e993359ec8bff1eef404d Mon Sep 17 00:00:00 2001 From: Gert Goet Date: Tue, 20 Feb 2024 17:53:05 +0100 Subject: [PATCH] fix: incorrectly unescaped quotes in history --- src/eval/deps_try/history.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eval/deps_try/history.clj b/src/eval/deps_try/history.clj index 90b917b..0a8eb29 100644 --- a/src/eval/deps_try/history.clj +++ b/src/eval/deps_try/history.clj @@ -103,7 +103,8 @@ [history-file] (let [unescape-cmd #(-> % (string/replace #"\\n" "\n") - (string/replace #"\\r" "\r"))] + (string/replace #"\\r" "\r") + (string/replace #"\\(.)" "$1"))] (map #(unescape-cmd (second (string/split % #":" 2))) (fs/read-all-lines history-file)))) (defn make-history