diff --git a/memberPlumbing/ucsAccounts.py b/memberPlumbing/ucsAccounts.py index 310ea64..48ea239 100755 --- a/memberPlumbing/ucsAccounts.py +++ b/memberPlumbing/ucsAccounts.py @@ -29,7 +29,7 @@ def sanitize_group_name(name): # From an API error message: "Username must only contain numbers, letters and dots!" def sanitize_user_name(name): - return re.sub(r"[^0-9a-z.]", ".", name.lower()) + return re.sub(r"[^0-9a-z.]", ".", name.lower()).strip(".") async def make_groups(group_mod, members):