98_help.pm: fix case sensitive problems in cmds hash #74903

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2019-01-19 17:24:30 +00:00
parent 240de302c4
commit 4e0eb75031

View File

@ -255,7 +255,7 @@ sub cref_fill_list(){
foreach my $mod (sort keys %mods) {
my %h = ( Fn => undef,
Hlp => "Command $mod not loaded. Use \"help $mod\" for more help" );
$cmds{$mod} = \%h if ( ($modIdx{$mod} eq "command") && !(defined($cmds{$mod})) );
$cmds{lc($mod)} = \%h if ( ($modIdx{$mod} eq "command") && !(defined($cmds{lc($mod)})) );
}
}
@ -264,8 +264,8 @@ sub cref_findInfo {
my ($l,@line,$found,$text);
my ($err,@text) = FileRead({FileName => "$modPath/MAINTAINER.txt", ForceType => 'file'});
foreach $l (@text) {
@line = split(" ", $l,3);
$found = ($l =~ m/^([0-9][0-9])_$mod\.pm$/i);
@line = split("[ \t][ \t]*", $l,3);
$found = ($l =~ m/_$mod/i);
last if ($found);
}
if($found) {