fixed regex

This commit is contained in:
Fabio Manganiello 2018-06-26 00:46:13 +02:00
parent 7adebec01d
commit 8e16f31603
1 changed files with 1 additions and 1 deletions

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