mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Adding . to the stateFormat easy-regexp
git-svn-id: https://svn.fhem.de/fhem/trunk@2787 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6f307b3012
commit
22636989d5
@ -3039,7 +3039,7 @@ evalStateFormat($)
|
||||
# Substitute reading names with their values, leave the rest untouched.
|
||||
$st = $sr;
|
||||
my $r = $hash->{READINGS};
|
||||
$st =~ s/\b([A-Za-z_-]+)\b/($r->{$1} ? $r->{$1}{VAL} : $1)/ge;
|
||||
$st =~ s/\b([A-Za-z_\.-]+)\b/($r->{$1} ? $r->{$1}{VAL} : $1)/ge;
|
||||
|
||||
}
|
||||
$hash->{STATE} = ReplaceEventMap($name, $st, 1) if(defined($st));
|
||||
|
Loading…
Reference in New Issue
Block a user