33_readingsGroup.pm: fixed commands mapping with a dot in the reading name

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7883 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2015-02-05 11:55:57 +00:00
parent ef20d8ac4b
commit f7da930aed

View File

@@ -608,7 +608,7 @@ readingsGroup_2html($;$)
my $webCmdFn = 0;
my $cmd = lookup2($hash->{helper}{commands},$name,$d,$txt);
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?(\s\S*)?$/ ) {
if( $cmd && $cmd =~ m/^([\w.-]*):(\S*)?(\s\S*)?$/ ) {
my $set = $1;
my $values = $2;
$set .= $3 if( $3 );
@@ -770,7 +770,7 @@ readingsGroup_2html($;$)
if( !$devStateIcon ) {
$cmd = lookup2($hash->{helper}{commands},$name,$n,$v) if( !$devStateIcon );
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?(\s\S*)?$/ ) {
if( $cmd && $cmd =~ m/^([\w.-]*):(\S*)?(\s\S*)?$/ ) {
my $set = $1;
my $values = $2;
$set .= $3 if( $3 );