the matches keyword should compare the value against a regex
@param("email", matches="\S+@\S+")
if it is a tuple, then you would just pass everything to regex:
@param("email", matches=("\S+@\S+", re.I))
though I'm not in love with that, maybe it should always be either a regex string or an already compiled regex, that would be better and make more sense.
the matches keyword should compare the value against a regex
if it is a tuple, then you would just pass everything to regex:
though I'm not in love with that, maybe it should always be either a regex string or an already compiled regex, that would be better and make more sense.