logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Badger::Data::Facet::Text::MaxLength - validation facet for text length

Author

       Andy Wardley <http://wardley.org/>

Description

       This module implements a validation facets that checks the length of a text value to assert that it is
       less than or equal to a pre-defined length.

Methods

       This module implement the following method in addition to those inherited from the
       Badger::Data::Facet::Text, Badger::Data::Facet and Badger::Base base classes.

   validate($text_ref,$type)
       This method validates that the length (i.e. number of characters) of the text passed by reference as the
       first argument is less than or equal to the pre-defined maximum limit.

Name

       Badger::Data::Facet::Text::MaxLength - validation facet for text length

See Also

       Badger::Base, Badger::Data::Facet, Badger::Data::Facet::Text.

perl v5.36.0                                       2023-08-28             Badger::Data::F...Text::MaxLength(3pm)

See Also