Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ public boolean matches(int pathIndex, MatchingContext matchingContext) {
else {
for (int i = 0; i < this.len; i++) {
char ch = this.text[i];
// TODO revisit performance if doing a lot of case insensitive matching
if ((ch != '?') && (ch != Character.toLowerCase(value.charAt(i)))) {
char valCh = value.charAt(i);
if (ch == valCh || ch == '?') {
continue;
}
if (ch != Character.toLowerCase(valCh)) {
return false;
}
}
Expand Down