From 8e16f316037fe602176fe35efa4a12d8b883242f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 26 Jun 2018 00:46:13 +0200 Subject: [PATCH] fixed regex --- platypush/backend/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index fed6f46f..a2dce9e3 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -253,7 +253,7 @@ class HttpBackend(Backend): except ValueError: pass - m = re.match('([-+]?)(\d+)([dhms])', time_string) + m = re.match('([-+]?)([0-9]+)([dhms])', time_string) if not m: raise RuntimeError('Invalid time interval string representation: "{}"'. format(time_string))