diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 75eb2420e..dc9dec77b 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -1549,7 +1549,7 @@ ReplaceSetMagic($$@) # Forum #38276 $x eq "" ? "[$1:$2$3]" : $x }/egi; - $a =~ s/{\((.*)\)}/AnalyzePerlCommand($hash->{CL},$1,1)/egs; + $a =~ s/{\((.*?)\)}/AnalyzePerlCommand($hash->{CL},$1,1)/egs; return (undef, @_) if($oa eq $a); return (undef, split(/ /, $a, $nsplit));