mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
fhem.pl: small notifyRegexpCheck fixes
--(This line, and those below, will be ignored-- M fhem.pl git-svn-id: https://svn.fhem.de/fhem/trunk@22465 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fc5087d187
commit
04514664b1
13
fhem/fhem.pl
13
fhem/fhem.pl
@ -5398,13 +5398,16 @@ notifyRegexpCheck($)
|
|||||||
{
|
{
|
||||||
join("\n", map {
|
join("\n", map {
|
||||||
if($_ !~ m/^\(?([A-Za-z0-9\.\_]+(?:\.[\+\*])?)(?::.*)?\)?$/) {
|
if($_ !~ m/^\(?([A-Za-z0-9\.\_]+(?:\.[\+\*])?)(?::.*)?\)?$/) {
|
||||||
"$_: nomatch (ignored)"
|
"$_: no match (ignored)"
|
||||||
} elsif($defs{$1}) {
|
} elsif($defs{$1}) {
|
||||||
"$_: device (OK)";
|
"$_: device $1 (OK)";
|
||||||
} elsif(devspec2array($1) ne $1) {
|
|
||||||
"$_: devspec (OK)";
|
|
||||||
} else {
|
} else {
|
||||||
"$_: unknown (ignored)";
|
my @ds = devspec2array($1);
|
||||||
|
if(@ds > 1 || $ds[0] != $1) {
|
||||||
|
"$_: devspec ".join(",",@ds)." (OK)";
|
||||||
|
} else {
|
||||||
|
"$_: unknown (ignored)";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} split(/\|/, $_[0]));
|
} split(/\|/, $_[0]));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user