root/lang/perl/FormValidator-LazyWay/trunk/lib/FormValidator/LazyWay/Rule/String/EN.pm @ 26882

Revision 26882, 0.5 kB (checked in by vkgtaro, 4 years ago)

記号を含まない ascii ルール(半角英数字のみ)追加。ハイフンとかアンダースコアは allow に追加すれば許可できるよ

Line 
1package FormValidator::LazyWay::Rule::String::EN;
2
3use strict;
4use warnings;
5
6sub length {
7    'minimun $_[min] letters and maximum $_[max] letters',
8}
9
10sub string {
11    'error',
12}
13
14sub ascii {
15    'alphabet, number, simbol ',
16}
17
18sub nonsymbol_ascii {
19    'alphabet, number',
20}
21
22sub alphabet {
23    'alphabet',
24}
25
26sub number {
27    'number',
28}
29
301;
31
32=head1 NAME
33
34FormValidator::LazyWay::Rule::String::EN - Messages of String Rule
35
36=head1 METHOD
37
38=head2 length
39
40=head2 string
41
42=head2 ascii
43
44=head2 nonsymbol_ascii
45
46=head2 alphabet
47
48=head2 number
49
50=cut
51
Note: See TracBrowser for help on using the browser.