mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 01:06:04 +00:00
00_CUL.pm/STACKABLE_CC: allow more report caharacters (Forum #60028)
git-svn-id: https://svn.fhem.de/fhem/trunk@12667 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0580b3c48c
commit
96bce799ce
@ -25,7 +25,7 @@ my %gets = ( # Name, Data to send to the CUL, Regexp for the answer
|
|||||||
"raw" => ["", '.*'],
|
"raw" => ["", '.*'],
|
||||||
"uptime" => ["t", '^[0-9A-F]{8}[\r\n]*$' ],
|
"uptime" => ["t", '^[0-9A-F]{8}[\r\n]*$' ],
|
||||||
"fhtbuf" => ["T03", '^[0-9A-F]+[\r\n]*$' ],
|
"fhtbuf" => ["T03", '^[0-9A-F]+[\r\n]*$' ],
|
||||||
"cmds" => ["?", '.*Use one of[ \*0-9A-Za-z]+[\r\n]*$' ],
|
"cmds" => ["?", '.*Use one of( .)*[\r\n]*$' ],
|
||||||
"credit10ms" => [ "X", '^.. *\d*[\r\n]*$' ],
|
"credit10ms" => [ "X", '^.. *\d*[\r\n]*$' ],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ sub
|
|||||||
STACKABLE_CC_DelPrefix($$)
|
STACKABLE_CC_DelPrefix($$)
|
||||||
{
|
{
|
||||||
my ($hash, $msg) = @_;
|
my ($hash, $msg) = @_;
|
||||||
$msg =~ s/^.//;
|
$msg =~ s/^[^A-Z0-9]//i;
|
||||||
return $msg;
|
return $msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user