98_help.pm: better regex handling

git-svn-id: https://svn.fhem.de/fhem/trunk@24897 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2021-08-30 16:30:28 +00:00
parent b6faa74d50
commit 9d5fb7e06b

View File

@@ -272,7 +272,7 @@ sub cref_findInfo {
if($found) {
$line[0]= (split("/",$line[0]))[1] if $line[0] =~ /\//;
if (defined($line[2])) {
$line[2] =~ s/\s*http.*/(link removed for security reasons)/i if ($cl->{TYPE} eq 'FHEMWEB');
$line[2] =~ s/\s*http.*/ (link removed for security reasons)/i if ($cl->{TYPE} eq 'FHEMWEB');
} else {
$line[2] = 'no info';
}