CrossClj

0.3.1 docs

SourceDocs



RECENT
    VARS
    equal-to?
    greater-than?
    has-value?
    has-values?
    is-email?
    less-than?
    matches-regex?
    max-length?
    min-length?
    not-nil?
    valid-number?

    « Index of all namespaces of this project

    Functions for validating input and setting string errors on fields.
    
    (equal-to? v n)
    Returns true if the string represents a number = given.
    
    (greater-than? v n)
    Returns true if the string represents a number > given.
    
    (has-value? v)
    Returns true if v is truthy and not an empty string.
    
    (has-values? coll)
    Returns true if all members of the collection has-value? This works on maps as well.
    
    (is-email? v)
    Returns true if v is an email address
    
    (less-than? v n)
    Returns true if the string represents a number < given.
    
    (matches-regex? v regex)
    Returns true if the string matches the given regular expression
    
    (max-length? v len)
    Returns true if v is less than or equal to the given len
    
    (min-length? v len)
    Returns true if v is greater than or equal to the given len
    
    (not-nil? v)
    Returns true if v is not nil
    
    (valid-number? v)
    Returns true if the string can be parsed to a Long