X-Git-Url: https://git.distorted.org.uk/~mdw/tgal/blobdiff_plain/e9eac06d78a5242b7f661ab1681b8b5b9216dcf5..58bc1431796b61e7fdf3564538d28c811b868fd9:/mason/.perl-lib/TrivGal.pm diff --git a/mason/.perl-lib/TrivGal.pm b/mason/.perl-lib/TrivGal.pm index bbef2ed..85bf0cc 100644 --- a/mason/.perl-lib/TrivGal.pm +++ b/mason/.perl-lib/TrivGal.pm @@ -294,7 +294,7 @@ sub listdir ($) { $comment = defined $comment ? $comment . "\n" . $_ : $_; } else { if ($item && $comment) { $item->comment($comment); } - my ($indexp, $name, $c) = /(!\s+)?(\S+)\s*(\S|\S.*\S)?\s*$/; + my ($indexp, $name, $c) = /^(!\s+)?(\S+)\s*(\S|\S.*\S)?\s*$/; $name = urldecode $name; my $list; if ($name =~ m#/$#) {