Skip to content

Commit 98e8c61

Browse files
committed
Trying new slug patterns for more recent Gitlab group name and slug rules.
#43
1 parent 784872a commit 98e8c61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LdapSyncCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,14 +1263,14 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
12631263
$this->output?->writeln(sprintf("Deploying users and groups to Gitlab instance \"%s\"...", $gitlabInstance));
12641264

12651265
$slugifyGitlabName = new Slugify([
1266-
"regexp" => "/([^A-Za-z0-9]|-_\. )+/",
1266+
"regexp" => "/([^A-Za-z0-9_\.\(\)\- ])+/",
12671267
"separator" => " ",
12681268
"lowercase" => false,
12691269
"trim" => true,
12701270
]);
12711271

12721272
$slugifyGitlabPath = new Slugify([
1273-
"regexp" => "/([^A-Za-z0-9]|-_\.)+/",
1273+
"regexp" => "/([^A-Za-z0-9_\.\-])+/",
12741274
"separator" => "-",
12751275
"lowercase" => true,
12761276
"trim" => true,

0 commit comments

Comments
 (0)