]> iEval git - gruntmaster-page.git/blobdiff - lib/Plack/App/Gruntmaster/HTML.pm
Improve HTML::Element::fclass
[gruntmaster-page.git] / 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.020028 seconds and 4 git commands to generate.