NIHVIVO-2901 tweak the RegularExpression that filters UserAccounts for the "list" page.

This commit is contained in:
j2blake 2011-07-14 18:21:27 +00:00
parent 7f3da9448d
commit ac163cb8dd
3 changed files with 15 additions and 2 deletions

View file

@ -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())) {