Liking cljdoc? Tell your friends :D

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-length - max size
  • :min-length - min size
  • :length - 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-length - max size
* :min-length - min size
* :length - exact size
* :re - regex matching string
* :blank? -check for blank
raw docstring

string-of*clj

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

string-of-gen*clj

(string-of-gen* {:keys [max-length min-length length blank?]
                 :or {min-length 0 max-length 100}})

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

× close