line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CGI::ValidOp::Check::text; |
2
|
8
|
|
|
8
|
|
62
|
use strict; |
|
8
|
|
|
|
|
18
|
|
|
8
|
|
|
|
|
350
|
|
3
|
8
|
|
|
8
|
|
46
|
use warnings; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
324
|
|
4
|
|
|
|
|
|
|
|
5
|
8
|
|
|
8
|
|
76
|
use base qw/ CGI::ValidOp::Check /; |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
5897
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub default { |
8
|
|
|
|
|
|
|
( |
9
|
551
|
|
|
551
|
1
|
3492
|
qr#^[\w\s\(\*\.\\\?,!"'/:;@&%)-]+$#, |
10
|
|
|
|
|
|
|
q#Only letters, numbers, and the following punctuation are allowed for $label: ! " ' ( ) * , - . / : ; ? \ @ & %#, |
11
|
|
|
|
|
|
|
) |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub word { |
15
|
|
|
|
|
|
|
( |
16
|
9
|
|
|
9
|
1
|
45
|
qr/^\w+$/, |
17
|
|
|
|
|
|
|
q#Only one word is allowed for $label#, |
18
|
|
|
|
|
|
|
) |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub words { |
22
|
|
|
|
|
|
|
( |
23
|
6
|
|
|
6
|
1
|
30
|
qr/^[\w -]+$/, |
24
|
|
|
|
|
|
|
q#Only words are allowed for $label#, |
25
|
|
|
|
|
|
|
) |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub liberal { |
29
|
|
|
|
|
|
|
( |
30
|
7
|
|
|
7
|
1
|
45
|
qr#^[\w\s\(\*\.\\\?,!"'/:;&=%~\+\@\$)\#-]+$#, |
31
|
|
|
|
|
|
|
q|Only letters, numbers, and the following punctuation are allowed for $label: ! " ' ( ) * , - . / : ; & = % ~ + ? \ @ $ #|, |
32
|
|
|
|
|
|
|
) |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub hippie { |
36
|
|
|
|
|
|
|
( |
37
|
7
|
|
|
7
|
1
|
31
|
qr{^[\w\s\(\*\.\\\?#,{}^_[\]!"'/:;&=%~\+\@\$)-]+$}, |
38
|
|
|
|
|
|
|
q{Only letters, numbers, and the following punctuation are allowed for $label: ! " ' ( ) * , - . / : ; & = % ~ + ? \ @ # { } [ ] ^ _ $}, |
39
|
|
|
|
|
|
|
) |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |