diff --git a/src/uxbox/util/color.cljs b/src/uxbox/util/color.cljs index 2805ebc8e..b03f61ea0 100644 --- a/src/uxbox/util/color.cljs +++ b/src/uxbox/util/color.cljs @@ -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)))