fix: preserve leading dots in group folders
This commit is contained in:
1 parent
618f9ebd06
commit
ba5fc6cfcb
2 files changed
+12
-1
No files matched your search
@@ -277,7 +277,7 @@ def parse_groups_from_ldap_output(output: str) -> List[Dict[str, object]]:
|
||||
|
||||
def sanitize_group_folder_name(raw_name: str) -> str:
|
||||
candidate = GROUP_FOLDER_INVALID_RE.sub("_", raw_name.strip())
|
||||
candidate = candidate.strip().strip(".")
|
||||
candidate = candidate.strip().rstrip(".")
|
||||
candidate = re.sub(r"\s+", " ", candidate)
|
||||
if not candidate:
|
||||
return ""
|
||||
|
||||
Reference in new issue
Block a user