From 1bf0fc9667d57dd821ea31d9c95e17eb1b4ea14c Mon Sep 17 00:00:00 2001 From: jbosecker <> Date: Tue, 7 Jan 2014 08:38:35 +0000 Subject: [PATCH] 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 --- contrib/70_Pushover.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/70_Pushover.pm b/contrib/70_Pushover.pm index d8aab1f81..d4aeccfa4 100644 --- a/contrib/70_Pushover.pm +++ b/contrib/70_Pushover.pm @@ -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; }