mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
98_dummy.pm: allow Newline in setList definition (Forum #61742)
git-svn-id: https://svn.fhem.de/fhem/trunk@12700 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
62a69400e8
commit
c8a9f2e107
@ -27,6 +27,7 @@ dummy_Set($@)
|
|||||||
|
|
||||||
return "no set value specified" if(int(@a) < 1);
|
return "no set value specified" if(int(@a) < 1);
|
||||||
my $setList = AttrVal($name, "setList", " ");
|
my $setList = AttrVal($name, "setList", " ");
|
||||||
|
$setList =~ s/\n/ /g;
|
||||||
|
|
||||||
if(AttrVal($name,"useSetExtensions",undef)) {
|
if(AttrVal($name,"useSetExtensions",undef)) {
|
||||||
my $a0 = $a[0]; $a0 =~ s/([.?*])/\\$1/g;
|
my $a0 = $a[0]; $a0 =~ s/([.?*])/\\$1/g;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user