line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Video::Embed::Site::Vimeo; |
2
|
11
|
|
|
11
|
|
6767
|
use Moo; |
|
11
|
|
|
|
|
26
|
|
|
11
|
|
|
|
|
58
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
with 'HTML::Video::Embed::Module'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub _build_domain_reg{ |
7
|
11
|
|
|
11
|
|
442
|
return qr/vimeo\.com/; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _build_validate_reg{ |
11
|
1
|
|
|
1
|
|
435
|
return qr|^(?:/m)?/(\d+)|; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub process{ |
15
|
4
|
|
|
4
|
0
|
5
|
my ( $self, $embeder, $uri ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
4
|
100
|
|
|
|
14
|
if ( my ( $vid ) = $uri->path =~ m/${ \$self->validate_reg }/ ){ |
|
4
|
|
|
|
|
43
|
|
18
|
2
|
|
|
|
|
32
|
return qq||; |
|
2
|
|
|
|
|
38
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
|
|
63
|
return undef; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |