Fork me on GitHub
#clojure-spec
<
2018-05-26
>
karol.adamiec10:05:56

@jplaza can you share ::uuid spec? i have issues with that one, as uuid? of “” is true….

jumar19:05:25

Not sure how uuid? can return true for empty string:

(uuid? "")
;;=> false

;; clojure.core/uuid
(defn uuid?
  "Return true if x is a java.util.UUID"
  {:added "1.9"}
  [x] (instance? java.util.UUID x))

karol.adamiec22:05:12

in clojurescript 😞

jplaza15:05:15

@karol.adamiec we are using compact uuids (https://github.com/tonsky/compact-uuids) so we are using a predicate