mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
FHEM/91_notify.pm: Allow multline matches in notify (Forum #82940)
git-svn-id: https://svn.fhem.de/fhem/trunk@15937 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b360987ad8
commit
c599692ce9
@ -82,7 +82,7 @@ notify_Exec($$)
|
|||||||
for (my $i = 0; $i < $max; $i++) {
|
for (my $i = 0; $i < $max; $i++) {
|
||||||
my $s = $events->[$i];
|
my $s = $events->[$i];
|
||||||
$s = "" if(!defined($s));
|
$s = "" if(!defined($s));
|
||||||
my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/);
|
my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/s);
|
||||||
if(!$found && AttrVal($n, "eventMap", undef)) {
|
if(!$found && AttrVal($n, "eventMap", undef)) {
|
||||||
my @res = ReplaceEventMap($n, [$n,$s], 0);
|
my @res = ReplaceEventMap($n, [$n,$s], 0);
|
||||||
shift @res;
|
shift @res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user