blib/lib/Comics/Plugin/Frogpants.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #! perl
2  
3 use strict;
4 use warnings;
5  
6 package Comics::Plugin::Frogpants;
7 # FKA Comics::Plugin::MyExtraLife;
8  
9 use parent qw(Comics::Fetcher::Cascade);
10  
11 our $VERSION = "1.01";
12  
13 our $name = "Extralife";
14 our $url = "https://www.frogpants.com/";
15 our $patterns = [
16 qr{ <a \s+ href="(?<url>.*?)" \s* >Comics \s+ &amp; \s+ art</a>
17 }xi,
18 qr{ <img \s+
19 data-load="false" \s+
20 data-src="(?<url>https?://images.squarespace-cdn.com/
21 content/v1/
22 [-_0-9a-z]+/
23 [-_0-9a-z]+/
24 [-_0-9a-z]+/
25 (?<image>[^./]+\.\w+))"
26 }xi,
27 ];
28  
29 # Important: Return the package name!
30 __PACKAGE__;