correct masking of - in regex
git-svn-id: https://svn.fhem.de/fhem/trunk@4720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -361,7 +361,7 @@ readingsGroup_2html($)
|
|||||||
my $txt = $1;
|
my $txt = $1;
|
||||||
my $readings;
|
my $readings;
|
||||||
$item++;
|
$item++;
|
||||||
if( $txt =~ m/^{(.*)}(@[\w-|.*]+)?$/ ) {
|
if( $txt =~ m/^{(.*)}(@[\w\-|.*]+)?$/ ) {
|
||||||
$txt = "{$1}";
|
$txt = "{$1}";
|
||||||
$readings = $2;
|
$readings = $2;
|
||||||
|
|
||||||
@@ -659,7 +659,7 @@ readingsGroup_Notify($$)
|
|||||||
my $txt = $1;
|
my $txt = $1;
|
||||||
my $readings;
|
my $readings;
|
||||||
$item++;
|
$item++;
|
||||||
if( $txt =~ m/^{(.*)}(@([\w-|.*]+))?$/ ) {
|
if( $txt =~ m/^{(.*)}(@([\w\-|.*]+))?$/ ) {
|
||||||
$txt = "{$1}";
|
$txt = "{$1}";
|
||||||
$readings = $3;
|
$readings = $3;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user