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