Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
- if (/(Domovská stránka projektu|Project home ?page)[:* ]*<(.*)>/) {
+ if (/(Domovská stránka projektu|Project home ?page)[:* ]*<([^<>]*)>/) {
$url = $2;
}
if (/\[\[!meta title="([^"]*)"\]\]/) {
$url = $2;
}
if (/\[\[!meta title="([^"]*)"\]\]/) {
$projects{$project}{'students'} = [];
}
my $p = $projects{$project};
$projects{$project}{'students'} = [];
}
my $p = $projects{$project};
+ if (!$$p{'url'} or $url) {
+ $$p{'url'} = $url;
+ }
push @{$$p{'students'}}, { 'file' => $file, 'name' => $name, 'year' => $year };
}
}
push @{$$p{'students'}}, { 'file' => $file, 'name' => $name, 'year' => $year };
}
}