diff --git a/backup.py b/backup.py index 1e23d13..98a96c2 100644 --- a/backup.py +++ b/backup.py @@ -24,7 +24,7 @@ def get_json(url, token): def check_name(name): - if not re.match(r"^\w[-\.\w]*$", name): + if not re.match(r"^\w|-|\.[-\.\w]*$", name): raise RuntimeError("invalid name '{0}'".format(name)) return name