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:
parent
d8e0200465
commit
7b5cd1d8a6
@ -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
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user