Add improved form validation in color lightbox.

This commit is contained in:
Andrey Antukh 2015-12-24 20:30:05 +02:00
parent f8b369784f
commit a896bb60d6
8 changed files with 53 additions and 10 deletions

View file

@ -30,6 +30,8 @@
[v]
(not (nil? (re-find #"^#[0-9A-Fa-f]{6}$" v))))
(def required v/required)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Public Api
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;