Add support for groups regex to the ui
Change-Id: I064f4d39a92bac4724489b372b4c8da9d2e4d0b7
This commit is contained in:
@@ -28,8 +28,12 @@ public class GroupMap extends NativeMap<GroupInfo> {
|
|||||||
public static void match(String match, int limit, int start, AsyncCallback<GroupMap> cb) {
|
public static void match(String match, int limit, int start, AsyncCallback<GroupMap> cb) {
|
||||||
RestApi call = groups();
|
RestApi call = groups();
|
||||||
if (match != null) {
|
if (match != null) {
|
||||||
|
if (match.startsWith("^")) {
|
||||||
|
call.addParameter("r", match);
|
||||||
|
} else {
|
||||||
call.addParameter("m", match);
|
call.addParameter("m", match);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (limit > 0) {
|
if (limit > 0) {
|
||||||
call.addParameter("n", limit);
|
call.addParameter("n", limit);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user