fhem.pl: change attr -r (Forum #98692)

git-svn-id: https://svn.fhem.de/fhem/trunk@18950 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2019-03-17 22:23:02 +00:00
parent f6c3199fa6
commit ab8e1829fe

View File

@@ -2873,7 +2873,7 @@ CommandAttr($$)
}
if($remove && $attr{$sdev} && $attr{$sdev}{$attrName}) {
my $v = $attr{$sdev}{$attrName};
$v =~ s/\s*$attrVal\s*//;
$v =~ s/\b$attrVal\b//;
$attrVal = $v;
}