Improve HTML::Element::fclass
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 10:43:34 +0000 (12:43 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 10:43:34 +0000 (12:43 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index fe7e4964ebe02507e0f86b4d281667bb0636c593..81a33c0dc59a12e0d4822ea95f12989ecca76dcd 100644 (file)
@@ -32,7 +32,7 @@ sub HTML::Element::iter3 {
 }
 
 sub HTML::Element::fid    { shift->look_down(id    => shift) }
-sub HTML::Element::fclass { shift->look_down(class => shift) }
+sub HTML::Element::fclass { shift->look_down(class => qr/\b$_[0]\b/) }
 
 sub HTML::Element::namedlink {
        my ($self, $id, $name) = @_;
This page took 0.010232 seconds and 4 git commands to generate.