From 837c43ac32197d03d4e2816718c5c89a58c1da71 Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Mon, 27 Jan 2020 15:48:11 +0000 Subject: [PATCH] Fixed bug in reading string values but still buggy if first character is digit --- src/csv2edn/csv2edn.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/csv2edn/csv2edn.clj b/src/csv2edn/csv2edn.clj index eb6f682..19aff49 100644 --- a/src/csv2edn/csv2edn.clj +++ b/src/csv2edn/csv2edn.clj @@ -16,7 +16,8 @@ integer or real in our data rather than a string representation of it." [^String s] (try - (read-string s) + (let [v (read-string s)] + (if (number? v) v s)) (catch Exception _ s))) (defn csv->edn