Skip to content

Commit

Permalink
fix: incorrectly unescaped quotes in history
Browse files Browse the repository at this point in the history
  • Loading branch information
eval committed Feb 20, 2024
1 parent 5b7dfa3 commit 36bb2ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eval/deps_try/history.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36bb2ef

Please sign in to comment.