mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_monitoring: regexs needs to match whole event
git-svn-id: https://svn.fhem.de/fhem/trunk@15160 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a9f5ff7f07
commit
71a044f5a4
@ -301,8 +301,8 @@ sub monitoring_Notify($$) {
|
||||
foreach my $event (@{$events}){
|
||||
next unless($event);
|
||||
|
||||
my $addMatch = "$name:$event" =~ $addRegex;
|
||||
my $removeMatch = $removeRegex ? "$name:$event" =~ $removeRegex : 0;
|
||||
my $addMatch = "$name:$event" =~ m/^$addRegex$/;
|
||||
my $removeMatch = $removeRegex ? "$name:$event" =~ m/^$removeRegex$/ : 0;
|
||||
|
||||
next unless(defined($event) && ($addMatch || $removeMatch));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user