X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster%2FHTML.pm;fp=lib%2FPlack%2FApp%2FGruntmaster%2FHTML.pm;h=c629383e76b9425eeaaff1a2947fcfa5b076f2ee;hp=ea2e99ea3c44d199ccd1460c859a5bd10d9db861;hb=10a4003fe323fbd7116c99202254dea5d69cdc71;hpb=ea6cce4c6c69f605e069049df4ca72f08451ef95 diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index ea2e99e..c629383 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -49,7 +49,7 @@ sub HTML::Element::fclass { shift->look_down(class => qr/\b$_[0]\b/) } sub HTML::Element::namedlink { my ($self, $id, $name) = @_; - $name = $id unless $name =~ /[[:graph:]]/; + $name = $id unless $name && $name =~ /[[:graph:]]/; $self = $self->find('a'); $self->edit_href(sub {s/id/$id/}); $self->replace_content($name);