NIHVIVO-2901 tweak the RegularExpression that filters UserAccounts for the "list" page.
This commit is contained in:
parent
7f3da9448d
commit
ac163cb8dd
3 changed files with 15 additions and 2 deletions
|
@ -184,7 +184,7 @@ public class UserAccountsSelector {
|
|||
if (!roleFilterUri.isEmpty()) {
|
||||
String clean = escapeForRegex(roleFilterUri);
|
||||
filters += "OPTIONAL { ?uri auth:hasPermissionSet ?role } \n"
|
||||
+ " FILTER (REGEX(str(?role), '" + clean + "'))";
|
||||
+ " FILTER (REGEX(str(?role), '^" + clean + "$'))";
|
||||
}
|
||||
|
||||
if ((!roleFilterUri.isEmpty()) && (!searchTerm.isEmpty())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue