From cf3d18e9ccd5e0563ed4d79190b9209d64cddbe4 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 25 Jun 2020 08:16:24 +0000 Subject: [PATCH] fhem.pl: Allow Dispatch to match multi-line text (Forum #112399) git-svn-id: https://svn.fhem.de/fhem/trunk@22261 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 8b692d55e..bb531a79c 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -3978,7 +3978,7 @@ Dispatch($$;$$) foreach my $m (@{$clientArray}) { # Module is not loaded or the message is not for this module - next if(!$modules{$m} || $dmsg !~ m/$modules{$m}{Match}/i); + next if(!$modules{$m} || $dmsg !~ m/$modules{$m}{Match}/is); if( my $ffn = $modules{$m}{FingerprintFn} ) { ($isdup, $idx) = CheckDuplicate($name, $dmsg, $ffn); @@ -4005,7 +4005,7 @@ Dispatch($$;$$) $h = $module->{MatchList} if(!$h); if(defined($h)) { foreach my $m (sort keys %{$h}) { - if($dmsg =~ m/$h->{$m}/) { + if($dmsg =~ m/$h->{$m}/is) { my ($order, $mname) = split(":", $m); if(AttrVal("global", "autoload_undefined_devices", 1)) {