Skip to content

Commit

Permalink
Change extractProject and extractConsentGroup methods to non-static
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed May 27, 2024
1 parent 90cd3c0 commit 6702417
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ private AccessRule getOrCreateAccessRule(String name, String description, String
});
}

private static String extractProject(String roleName) {
private String extractProject(String roleName) {
String projectPattern = "FENCE_(.*?)(?:_c\\d+)?$";
if (roleName.startsWith("MANUAL_")) {
projectPattern = "MANUAL_(.*?)(?:_c\\d+)?$";
Expand All @@ -1091,7 +1091,7 @@ private static String extractProject(String roleName) {
return project;
}

private static String extractConsentGroup(String roleName) {
private String extractConsentGroup(String roleName) {
String consentPattern = "FENCE_.*?_c(\\d+)$";
if (roleName.startsWith("MANUAL_")) {
consentPattern = "MANUAL_.*?_c(\\d+)$";
Expand Down

0 comments on commit 6702417

Please sign in to comment.