lib/WWW/Shopify/Liquid/Dialect/Web/Filter/EscapeCSS.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 26 CC 2 SCAR 11.5
CC
2
Cov
0%
operate
6.0
min_arguments
2.0
max_arguments
2.0
CRAP 3.1
1 use strict;
2 use warnings;
3  
4 package WWW::Shopify::Liquid::Dialect::Web::Filter::EscapeCSS;
5 use base 'WWW::Shopify::Liquid::Filter';
6  
7 sub min_arguments { return 0; }
8 sub max_arguments { return 0; }
9 sub operate {
10 my ($self, $hash, $operand) = @_;
11 return undef unless $operand;
12 $operand =~ s/<\s*\/\s*style\s*>//g;
13 return $operand;
14 }
15  
16 1;