The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

NAME

FormValidator::LazyWay::Rule::String - String Rule

METHOD

length

stash_test

ascii

nonsymbol_ascii

only alphabets and numbers.

you add $args->{allow} if you accept symbols.

  username:
    rule:
      - String#nonsimbol_ascii:
          args:
            allow:
              - '_'
              - '-'

alphabet

number