Branch Coverage

blib/lib/HTML/BBCode/StripScripts.pm
Criterion Covered Total %
branch 11 12 91.6


line true false branch
20 17 7 unless (%bbattrib)
28 17 7 unless (%bbstyle)
41 5 11 if ($query)
42 5 0 if ($query =~ /[^A-Za-z0-9\-_.!~*'()]/ and not $query =~ /%(?![A-Fa-f0-9])/)
50 1 15 if $$self{'_hssCfg'}{'AllowRelURL'} and $text =~ m[^((?:[\w\-.!~*|;/?=+\$,%#]|&){0,100})$]
54 13 2 $text =~ m[ ^ ( (f|ht)tps? :// [\w\-\.]{1,100} (?:\:\d{1,5})? (?: / (?:[\w\-.!~*|;/?=+\$,%#]|&){0,2000} )? ) $ ]x ? :