in src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/ContentTypeUtil.java [97:110]
boolean matchesAny(String s, String[] patterns) throws ExecutionException {
for (String p : patterns) {
if (p.startsWith("^") && patternCache.get(p).matcher(s).matches()) {
return true;
} else if (p.endsWith("*") && s.startsWith(p.substring(0, p.length() - 1))) {
return true;
} else {
if (p.equals(s)) {
return true;
}
}
}
return false;
}