2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 07:16:03 +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:
rudolfkoenig 2016-11-27 09:12:29 +00:00
parent 0580b3c48c
commit 96bce799ce
2 changed files with 2 additions and 2 deletions

View File

@ -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]*$' ],
); );

View File

@ -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;
} }