From 05b96b612b680a702e743c5a1d08052c476746cd Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Sat, 26 Sep 2020 17:36:45 -0700 Subject: [PATCH] Strip leading and trailing whitespace from registration, squawk, callsign. --- src/main/lemondronor/advisorycircular.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lemondronor/advisorycircular.cljs b/src/main/lemondronor/advisorycircular.cljs index 8f15ec1..c3a5de9 100644 --- a/src/main/lemondronor/advisorycircular.cljs +++ b/src/main/lemondronor/advisorycircular.cljs @@ -79,7 +79,7 @@ (defn parse-adsbexchange-ac-element [e] - (let [nilstr #(if (= % "") nil %) + (let [nilstr #(if (= % "") nil (string/trim %)) numstr #(if (= % "") nil (js/parseFloat %)) boolstr #(if (or (= % "1") (= (string/lower-case %) "true")) true