Strip leading and trailing whitespace from registration, squawk, callsign.
This commit is contained in:
parent
2321468260
commit
05b96b612b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user