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

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@4582 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jbosecker 2014-01-07 08:38:35 +00:00
parent 1169d6c739
commit 91d66d0406

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