mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Improve color/hex?
predicate.
This commit is contained in:
parent
3584c1f59a
commit
a95bd7f02a
1 changed files with 2 additions and 1 deletions
|
@ -49,4 +49,5 @@
|
|||
|
||||
(defn hex?
|
||||
[v]
|
||||
(not (nil? (re-find #"^#[0-9A-Fa-f]{6}$" v))))
|
||||
(and (string? v)
|
||||
(re-seq #"^#[0-9A-Fa-f]{6}$" v)))
|
||||
|
|
Loading…
Reference in a new issue