AttrTemplate.pm: allow space around {} in option: (Forum #112955)

git-svn-id: https://svn.fhem.de/fhem/trunk@22981 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2020-10-17 09:22:06 +00:00
parent 7c7718d45e
commit d6eaf7a811

View File

@@ -349,7 +349,7 @@ AttrTemplate_Set($$@)
$cmd .= $_; $cmd .= $_;
if($cmd =~ m/^option:(.*)$/s) { if($cmd =~ m/^option:(.*)$/s) {
my $optVal = $1; my $optVal = $1;
if($optVal =~ m/^{.*}$/) { if($optVal =~ m/^\s*{.*}\s*$/) {
$option = (AnalyzePerlCommand(undef, $optVal) eq "1"); $option = (AnalyzePerlCommand(undef, $optVal) eq "1");
} else { } else {