1use strict; 2 3package HTML::FormFu::Constraint::Printable; 4$HTML::FormFu::Constraint::Printable::VERSION = '2.07'; 5# ABSTRACT: Printable Characters Constraint 6 7use Moose; 8extends 'HTML::FormFu::Constraint::Regex'; 9 10sub regex { 11 return qr/^\p{IsPrint}*\z/; 12} 13 14__PACKAGE__->meta->make_immutable; 15 161; 17 18__END__ 19 20=pod 21 22=encoding UTF-8 23 24=head1 NAME 25 26HTML::FormFu::Constraint::Printable - Printable Characters Constraint 27 28=head1 VERSION 29 30version 2.07 31 32=head1 DESCRIPTION 33 34Constraint that checks against the unicode C<print> character class, 35(Alphanumeric, punct, and space). 36 37=head1 SEE ALSO 38 39Is a sub-class of, and inherits methods from L<HTML::FormFu::Constraint::Regex>, 40L<HTML::FormFu::Constraint> 41 42L<HTML::FormFu> 43 44=head1 AUTHOR 45 46Carl Franks C<cfranks@cpan.org> 47 48=head1 LICENSE 49 50This library is free software, you can redistribute it and/or modify it under 51the same terms as Perl itself. 52 53=head1 AUTHOR 54 55Carl Franks <cpan@fireartist.com> 56 57=head1 COPYRIGHT AND LICENSE 58 59This software is copyright (c) 2018 by Carl Franks. 60 61This is free software; you can redistribute it and/or modify it under 62the same terms as the Perl 5 programming language system itself. 63 64=cut 65