in src/main/java/com/googlesource/gerrit/plugins/quota/Namespace.java [31:40]
public boolean matches(Project.NameKey project) {
String p = project.get();
if (namespace.endsWith("/*")) {
return p.startsWith(namespace.substring(0, namespace.length() - 1));
} else if (namespace.startsWith("^")) {
return p.matches(namespace.substring(1));
} else {
return p.equals(namespace);
}
}