70_Pushover: fix regex to detect target terminal device name

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

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;