mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
fhem.pl/devspec2array bugfix: ? returned a list of everything.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5062 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
87da42afab
commit
ec623865dd
2
fhem.pl
2
fhem.pl
@ -926,7 +926,7 @@ devspec2array($)
|
|||||||
}
|
}
|
||||||
$val="" if(!defined($val));
|
$val="" if(!defined($val));
|
||||||
|
|
||||||
my $lre = ($n eq "room" ? "(^|,)$re(,|\$)" : "^$re\$");
|
my $lre = ($n eq "room" ? "(^|,)($re)(,|\$)" : "^($re)\$");
|
||||||
eval { # a bad regexp is deadly
|
eval { # a bad regexp is deadly
|
||||||
if(($op eq "=" && $val =~ m/$lre/) ||
|
if(($op eq "=" && $val =~ m/$lre/) ||
|
||||||
($op eq "!=" && $val !~ m/$lre/)) {
|
($op eq "!=" && $val !~ m/$lre/)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user