line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
our $VERSION = '0.15'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use Catmandu::Sane; |
5
|
1
|
|
|
1
|
|
355666
|
use Moo; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
5
|
|
6
|
1
|
|
|
1
|
|
149
|
use Data::Validate::URI; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
7
|
1
|
|
|
1
|
|
800
|
use Catmandu::Fix::Has; |
|
1
|
|
|
|
|
41481
|
|
|
1
|
|
|
|
|
47
|
|
8
|
1
|
|
|
1
|
|
8
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
9
|
|
|
|
|
|
|
has path => (fix_arg => 1); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with 'Catmandu::Fix::Condition::SimpleAllTest'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my ($self, $var) = @_; |
14
|
|
|
|
|
|
|
"(is_value(${var}) && Data::Validate::URI::is_https_uri(${var}))"; |
15
|
5
|
|
|
5
|
0
|
26840
|
} |
16
|
5
|
|
|
|
|
20
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Catmandu::Fix::Condition::is_https_uri - check of a field contains an HTTPS URI |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SYNOPSIS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
if is_https_uri(uri_field) |
24
|
|
|
|
|
|
|
... |
25
|
|
|
|
|
|
|
else |
26
|
|
|
|
|
|
|
... |
27
|
|
|
|
|
|
|
end |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SEE ALSO |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
L<Catmandu::Fix> |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |