| 1 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | package HTML::FormFu::Constraint::Word; | ||
| 4 | 6 | $HTML::FormFu::Constraint::Word::VERSION = '2.06'; | |
| 5 | # ABSTRACT: Single Word Constraint | ||
| 6 | |||
| 7 | 6 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 6 | extends 'HTML::FormFu::Constraint::Regex'; | |
| 9 | |||
| 10 | sub regex { | ||
| 11 | 24 | ▶ | return qr/^\w*\z/; |
|
Subroutine
regex: called CC=1 SCAR=0.0
Pod
documented
| |||
| 12 | } | ||
| 13 | |||
| 14 | 6 | __PACKAGE__->meta->make_immutable; | |
| 15 | |||
| 16 | 6 | 1; | |
| 17 | |||
| 18 | __END__ | ||
| 19 | |||
| 20 | =pod | ||
| 21 | |||
| 22 | =encoding UTF-8 | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | HTML::FormFu::Constraint::Word - Single Word Constraint | ||
| 27 | |||
| 28 | =head1 VERSION | ||
| 29 | |||
| 30 | version 2.06 | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | Ensure the input is a single word. Which characters are considered "word | ||
| 35 | characters" will depend on the current locale. | ||
| 36 | |||
| 37 | =head1 SEE ALSO | ||
| 38 | |||
| 39 | Is a sub-class of, and inherits methods from L<HTML::FormFu::Constraint::Regex>, | ||
| 40 | L<HTML::FormFu::Constraint> | ||
| 41 | |||
| 42 | L<HTML::FormFu> | ||
| 43 | |||
| 44 | =head1 AUTHOR | ||
| 45 | |||
| 46 | Carl Franks C<cfranks@cpan.org> | ||
| 47 | |||
| 48 | =head1 LICENSE | ||
| 49 | |||
| 50 | This library is free software, you can redistribute it and/or modify it under | ||
| 51 | the same terms as Perl itself. | ||
| 52 | |||
| 53 | =head1 AUTHOR | ||
| 54 | |||
| 55 | Carl Franks <cpan@fireartist.com> | ||
| 56 | |||
| 57 | =head1 COPYRIGHT AND LICENSE | ||
| 58 | |||
| 59 | This software is copyright (c) 2018 by Carl Franks. | ||
| 60 | |||
| 61 | This is free software; you can redistribute it and/or modify it under | ||
| 62 | the same terms as the Perl 5 programming language system itself. | ||
| 63 | |||
| 64 | =cut | ||