mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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
11
fhem/fhem.pl
11
fhem/fhem.pl
@ -5398,14 +5398,17 @@ notifyRegexpCheck($)
|
||||
{
|
||||
join("\n", map {
|
||||
if($_ !~ m/^\(?([A-Za-z0-9\.\_]+(?:\.[\+\*])?)(?::.*)?\)?$/) {
|
||||
"$_: nomatch (ignored)"
|
||||
"$_: no match (ignored)"
|
||||
} elsif($defs{$1}) {
|
||||
"$_: device (OK)";
|
||||
} elsif(devspec2array($1) ne $1) {
|
||||
"$_: devspec (OK)";
|
||||
"$_: device $1 (OK)";
|
||||
} else {
|
||||
my @ds = devspec2array($1);
|
||||
if(@ds > 1 || $ds[0] != $1) {
|
||||
"$_: devspec ".join(",",@ds)." (OK)";
|
||||
} else {
|
||||
"$_: unknown (ignored)";
|
||||
}
|
||||
}
|
||||
} split(/\|/, $_[0]));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user