Liking cljdoc? Tell your friends :D
Clojure only.

exoscale.specs.string


string-ofcljmacro

(string-of opts)

Returns a spec that will check conditions against string with AND. The options are loosely based on coll-of.

  • :trim? - trim value before checking

Combined with AND:

  • :max-count - max size
  • :min-count - min size
  • :count - exact size
  • :re - regex matching string
  • :blank? -check for blank
Returns a spec that will check conditions against string with
AND. The options are loosely based on coll-of.

* :trim? - trim value before checking

Combined with AND:
* :max-count - max size
* :min-count - min size
* :count - exact size
* :re - regex matching string
* :blank? -check for blank
raw docstring

string-of*clj

(string-of* {:keys [min-count max-count count trim? blank? re]})

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close