mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
Improve color/hex? predicate.
This commit is contained in:
parent
3584c1f59a
commit
a95bd7f02a
@ -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…
x
Reference in New Issue
Block a user