mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
capitals after asterisk should only match word starts
This commit is contained in:
@@ -572,6 +572,7 @@ public class NameUtil {
|
||||
}
|
||||
|
||||
String nextChar = String.valueOf(myPattern[patternIndex]);
|
||||
boolean wordStart = isWordStart(myPattern[patternIndex]);
|
||||
|
||||
int fromIndex = nameIndex;
|
||||
while (true) {
|
||||
@@ -579,6 +580,11 @@ public class NameUtil {
|
||||
if (next < 0) {
|
||||
break;
|
||||
}
|
||||
if (wordStart && next > 0 && next != nextWord(name, next - 1)) {
|
||||
fromIndex = next + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
FList<TextRange> ranges = matchName(name, patternIndex, next);
|
||||
if (ranges != null) {
|
||||
return ranges;
|
||||
|
||||
Reference in New Issue
Block a user