diff --git a/rbackup/struct/repository.py b/rbackup/struct/repository.py index af5e14a..cb501a6 100644 --- a/rbackup/struct/repository.py +++ b/rbackup/struct/repository.py @@ -148,7 +148,7 @@ class Repository(Hierarchy): * Contain slashes * Are empty values - Valid names match the regex ``[\\w]+[^/]*`` + Valid names match the regex ``[\\w._+-]+[^/]*`` :param name: name to validate :type name: str diff --git a/tests/test_repository.py b/tests/test_repository.py index dede08d..43de78e 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -19,7 +19,7 @@ TESTING_PACKAGE = "rbackup.struct" TESTING_MODULE = f"{TESTING_PACKAGE}.repository" SS_MODULE = f"{TESTING_PACKAGE}.snapshot" -VALID_SNAPSHOT_NAME = r"[\w._@:+-]+[^/]*" +VALID_SNAPSHOT_NAME = r"[\w._+-]+[^/]*" # ========== Integration Tests ==========