blib/lib/FormValidator/LazyWay/Rule/String.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 15 | 18 | 83.3 |
line | true | false | branch |
---|---|---|---|
11 | 0 | 34 | unless exists $$args{'max'} |
12 | 0 | 34 | unless exists $$args{'min'} |
14 | 7 | 27 | CORE::length $text > $$args{'max'} || CORE::length $text < $$args{'min'} ? : |
27 | 2 | 0 | $stash ? : |
32 | 21 | 4 | $text =~ /^[\x20-\x7E]+$/ ? : |
38 | 2 | 5 | if (ref $$args{'allow'} eq 'ARRAY') |
44 | 5 | 2 | $text =~ /^[a-zA-Z0-9]+$/ ? : |
49 | 2 | 3 | $text =~ /^[a-zA-Z]+$/ ? : |
54 | 1 | 5 | $text =~ /^[0-9]+$/ ? : |