projects
/
plack-app-gruntmaster.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a very basic test
[plack-app-gruntmaster.git]
/
lib
/
Plack
/
App
/
Gruntmaster
/
HTML.pm
diff --git
a/lib/Plack/App/Gruntmaster/HTML.pm
b/lib/Plack/App/Gruntmaster/HTML.pm
index ea2e99ea3c44d199ccd1460c859a5bd10d9db861..c629383e76b9425eeaaff1a2947fcfa5b076f2ee 100644
(file)
--- 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) = @_;
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);
$self = $self->find('a');
$self->edit_href(sub {s/id/$id/});
$self->replace_content($name);
This page took
0.009435 seconds
and
4
git commands to generate.