Added regex testing
This commit is contained in:
@@ -173,7 +173,7 @@
|
||||
:field [:bank-account]
|
||||
:spec ::entity/bank-account}]]
|
||||
|
||||
[field "Description"
|
||||
[field [:span "Description (" [:a {:href "https://regex101.com" :target "_new"} "regex tester"] ")" ]
|
||||
[:input.input {:type "text"
|
||||
:field [:description]
|
||||
:spec ::entity/description}]]
|
||||
|
||||
@@ -200,7 +200,10 @@
|
||||
(.preventDefault e)
|
||||
(re-frame/dispatch (-> event
|
||||
(conj field)
|
||||
(conj (js/parseFloat (.. e -target -value))))))
|
||||
(conj (let [val (.. e -target -value)]
|
||||
(if (and val (not (str/blank? val)))
|
||||
(js/parseFloat val)
|
||||
val))))))
|
||||
:value (get-in subscription field)
|
||||
|
||||
:class (str class
|
||||
|
||||
Reference in New Issue
Block a user