mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 17:16:11 +02: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?
|
(defn hex?
|
||||||
[v]
|
[v]
|
||||||
(not (nil? (re-find #"^#[0-9A-Fa-f]{6}$" v))))
|
(and (string? v)
|
||||||
|
(re-seq #"^#[0-9A-Fa-f]{6}$" v)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue