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

98_help.com: improve regex handling

git-svn-id: https://svn.fhem.de/fhem/trunk@24900 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2021-08-31 01:30:54 +00:00
parent faa44efcf9
commit 2cd3604f59

View File

@ -272,7 +272,7 @@ 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] =~ /\//;
if (defined($line[2])) { 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.*/ (see MAINTAINER.txt for more info)/i if ($cl->{TYPE} eq 'FHEMWEB');
} else { } else {
$line[2] = 'no info'; $line[2] = 'no info';
} }