Fixed issue where negative priorities werent allowed (Thanks to Patrick Reinhardt for finding and fixing this issue).

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4582 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jbosecker 2014-01-07 08:38:35 +00:00
parent 291be16251
commit 1bf0fc9667

View File

@ -90,11 +90,11 @@ sub Pushover_Set_Message
my $shortExpressionMatched = 0;
my $longExpressionMatched = 0;
if($attr =~ /(".*"|'.*')\s*(".*"|'.*')\s*(".*"|'.*')\s*(\d+)\s*(".*"|'.*')\s*(\d+)\s*(\d+)\s*$/s)
if($attr =~ /(".*"|'.*')\s*(".*"|'.*')\s*(".*"|'.*')\s*(-?\d+)\s*(".*"|'.*')\s*(\d+)\s*(\d+)\s*$/s)
{
$longExpressionMatched = 1;
}
elsif($attr =~ /(".*"|'.*')\s*(".*"|'.*')\s*(".*"|'.*')\s*(\d+)\s*(".*"|'.*')\s*$/s)
elsif($attr =~ /(".*"|'.*')\s*(".*"|'.*')\s*(".*"|'.*')\s*(-?\d+)\s*(".*"|'.*')\s*$/s)
{
$shortExpressionMatched = 1;
}