mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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:
parent
ac20a7d299
commit
31963159fd
@ -271,7 +271,11 @@ sub cref_findInfo {
|
|||||||
}
|
}
|
||||||
if($found) {
|
if($found) {
|
||||||
$line[0]= (split("/",$line[0]))[1] if $line[0] =~ /\//;
|
$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 = "<br/><b>Module:</b> $line[0] ";
|
||||||
$text .= "<b>Maintainer:</b> $line[1] ";
|
$text .= "<b>Maintainer:</b> $line[1] ";
|
||||||
$text .= "<b>Forum:</b> $line[2]\n";
|
$text .= "<b>Forum:</b> $line[2]\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user