From 28ec8060441f56601f8cb167fafd32fdfb3c1a8a Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 8 Feb 2015 12:43:34 +0200 Subject: [PATCH] Improve HTML::Element::fclass --- lib/Plack/App/Gruntmaster/HTML.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index fe7e496..81a33c0 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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) = @_; -- 2.39.2