Add support for groups regex to the ui

Change-Id: I064f4d39a92bac4724489b372b4c8da9d2e4d0b7
This commit is contained in:
Paladox none
2017-07-12 12:04:08 +00:00
parent 20c169d232
commit 38871a8e6e

View File

@@ -28,7 +28,11 @@ public class GroupMap extends NativeMap<GroupInfo> {
public static void match(String match, int limit, int start, AsyncCallback<GroupMap> cb) {
RestApi call = groups();
if (match != null) {
call.addParameter("m", match);
if (match.startsWith("^")) {
call.addParameter("r", match);
} else {
call.addParameter("m", match);
}
}
if (limit > 0) {
call.addParameter("n", limit);