mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
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:
parent
d67aeb6d88
commit
d48f49d021
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user