sb.append(ch);
}
}
if (star || doubleStar) {
if (StringUtil.endsWithChar(sb, '/')) {
<BUG>sb.append(acceptChildren ? ".+" : "[^/]+");

} else {
sb.append("[^/]*");</BUG>
}

sb.append(ch);
continue;
} else if (doubleStar) {
doubleStar = false;
if (ch == '/') {
sb.append("(?:[^/]*/)*?");
continue;
