Sah/Schema/latin_alphanum.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Sah/Schema/latin_alpha.pm ↑ Summary Sah/Schema/latin_letter.pm »
1 package Sah::Schema::latin_alphanum;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6 1 our $DATE = '2024-02-06'; # DATE
7 1 our $DIST = 'Sah-Schemas-Str'; # DIST
8 1 our $VERSION = '0.018'; # VERSION
9  
10 1 our $schema = [str => {
11 summary => 'String containing only zero or more Latin letters/digits, i.e. A-Za-z0-9',
12 match => qr/\A[A-Za-z0-9]*\z/,
13  
14 examples => [
15 {value=>'', valid=>1},
16 {value=>'A019', valid=>1},
17 {value=>'foo bar', valid=>0},
18 ],
19  
20 }];
21  
22 1 1;
23 # ABSTRACT:
24  
25 __END__
« Sah/Schema/latin_alpha.pm ↑ Summary Sah/Schema/latin_letter.pm »