From 1687c41ae88b7710ea93fbec8ad5bd61f55d2bd2 Mon Sep 17 00:00:00 2001 From: Mina Ashraf Date: Thu, 27 Jul 2023 15:51:51 +0000 Subject: [PATCH] regexp --- internal/jujuapi/access_control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/jujuapi/access_control.go b/internal/jujuapi/access_control.go index 2cff4444a..d7a79c65a 100644 --- a/internal/jujuapi/access_control.go +++ b/internal/jujuapi/access_control.go @@ -52,7 +52,7 @@ var ( // (1)[group](2)[-](3)[alices-wonderland](10)[#member] // So if a group, user, UUID, controller name comes in, it will always be index 3 for them // and if a relation specifier is present, it will always be index 10 - jujuURIMatcher = regexp.MustCompile(`([a-zA-Z0-9]*)(\-|\z)([a-zA-Z0-9-@]*)(\:|)([a-zA-Z0-9-@]*)(\/|)([a-zA-Z0-9-]*)(\.|)([a-zA-Z0-9-]*)([a-zA-Z#]*|\z)\z`) + jujuURIMatcher = regexp.MustCompile(`([a-zA-Z0-9]*)(\-|\z)([a-zA-Z0-9-@.]*)(\:|)([a-zA-Z0-9-@]*)(\/|)([a-zA-Z0-9-]*)(\.|)([a-zA-Z0-9-]*)([a-zA-Z#]*|\z)\z`) ) // AddGroup creates a group within JIMMs DB for reference by OpenFGA.