2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 22:26:04 +00:00

fhem.pl/devspec2array bugfix: ? returned a list of everything.

git-svn-id: https://svn.fhem.de/fhem/trunk@5062 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-02-27 08:04:33 +00:00
parent 7666c81cf6
commit 71419b90c2

View File

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