2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 00:26:03 +00:00

70_Pushover: fix regex to detect target terminal device name

git-svn-id: https://svn.fhem.de/fhem/trunk@12614 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2016-11-21 11:31:43 +00:00
parent 9aa04d7ed3
commit 7b4bc4d981

View File

@ -820,7 +820,7 @@ sub Pushover_SetMessage {
# check if we got a user or group key as device and use it as # check if we got a user or group key as device and use it as
# user-key instead of hash->USER_KEY # user-key instead of hash->USER_KEY
if ( $values{device} =~ /^([A-Za-z0-9]{30})?:?([A-Za-z0-9_-]*)?$/s ) { if ( $values{device} =~ /^([A-Za-z0-9]{30})?:?([A-Za-z0-9_-]*)?(.*)?$/ ) {
$values{USER_KEY} = $1 if ( $1 ne "" ); $values{USER_KEY} = $1 if ( $1 ne "" );
$values{device} = $2; $values{device} = $2;