2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

98_help.pm: change regex for urls

git-svn-id: https://svn.fhem.de/fhem/trunk@24893 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2021-08-30 11:28:08 +00:00
parent ac20a7d299
commit 31963159fd

View File

@ -271,7 +271,11 @@ sub cref_findInfo {
}
if($found) {
$line[0]= (split("/",$line[0]))[1] if $line[0] =~ /\//;
$line[2]= "no info" if ($line[2] =~ /http/ || !defined($line[2]));
$line[2] = 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";