2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

fhem.pl/devspec2array search multiple-line values (added s regexp modifier)

git-svn-id: https://svn.fhem.de/fhem/trunk@5238 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-03-16 16:23:31 +00:00
parent d8e0200465
commit 7b5cd1d8a6

View File

@ -993,8 +993,8 @@ devspec2array($)
my $lre = ($n eq "room" ? "(^|,)($re)(,|\$)" : "^($re)\$");
eval { # a bad regexp is deadly
if(($op eq "=" && $val =~ m/$lre/) ||
($op eq "!=" && $val !~ m/$lre/)) {
if(($op eq "=" && $val =~ m/$lre/s) ||
($op eq "!=" && $val !~ m/$lre/s)) {
push @res, $d
}
};