fixed regex

This commit is contained in:
Fabio Manganiello 2018-06-26 00:46:13 +02:00
parent 7adebec01d
commit 8e16f31603

View file

@ -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))