2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 12:58:13 +00:00

98_DOIF.pm: fixed: itimer Regex-Check

git-svn-id: https://svn.fhem.de/fhem/trunk@18351 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2019-01-20 14:24:30 +00:00
parent 06c58577ce
commit 793072dc5e

View File

@ -2015,7 +2015,7 @@ sub CheckiTimerDoIf($$$) {
my $found; my $found;
return 1 if ($itimer =~ /\[$device(\]|,.+\])/); return 1 if ($itimer =~ /\[$device(\]|,.+\])/);
for (my $j = 0; $j < $max; $j++) { for (my $j = 0; $j < $max; $j++) {
if ($eventa->[$j] =~ "^(.+): ") { if ($eventa->[$j] =~ "^([^:]+): ") {
$found = ($itimer =~ /\[$device:$1(\]|:.+\]|,.+\])/); $found = ($itimer =~ /\[$device:$1(\]|:.+\]|,.+\])/);
if ($found) { if ($found) {
return 1; return 1;