mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
fhem.pl: enable regexp attributes with FHEMWEB modifier (Forum #48150)
git-svn-id: https://svn.fhem.de/fhem/trunk@10639 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
70a941bd59
commit
39f4da42ab
@ -2448,7 +2448,9 @@ CommandAttr($$)
|
||||
if(" $list " !~ m/ ${attrName}[ :;]/) {
|
||||
my $found = 0;
|
||||
foreach my $atr (split("[ \t]", $list)) { # is it a regexp?
|
||||
if(${attrName} =~ m/^$atr$/) {
|
||||
$atr =~ /^([^;:]+)(:.*)?$/;
|
||||
my $base = $1;
|
||||
if(${attrName} =~ m/^$base$/) {
|
||||
$found++;
|
||||
last;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user