Strip leading and trailing whitespace from registration, squawk, callsign.

This commit is contained in:
John Wiseman 2020-09-26 17:36:45 -07:00
parent 2321468260
commit 05b96b612b

View File

@ -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