2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 02:10:32 +00:00

98_help.pm: change regex for urls

git-svn-id: https://svn.fhem.de/fhem/trunk@24895 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2021-08-30 11:32:25 +00:00
parent 0109d9968c
commit 4d99159afa

View File

@ -270,12 +270,12 @@ sub cref_findInfo {
last if ($found);
}
if($found) {
$line[0]= (split("/",$line[0]))[1] if $line[0] =~ /\//;
if defined($line[2]) {
$line[2] =~ s/\s*http.*//i;
} else {
$line[2] = 'no info';
}
$line[0]= (split("/",$line[0]))[1] if $line[0] =~ /\//;
if (defined($line[2])) {
$line[2] =~ s/\s*http.*//i;
} else {
$line[2] = 'no info';
}
$text = "<br/><b>Module:</b> $line[0] ";
$text .= "<b>Maintainer:</b> $line[1] ";
$text .= "<b>Forum:</b> $line[2]\n";