mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
xxxConfig should match config if first letter matching == true
This commit is contained in:
@@ -256,6 +256,7 @@ public class NameUtilTest extends UsefulTestCase {
|
||||
assertFalse(firstLetterMatcher(" a").matches("Aaa"));
|
||||
assertFalse(firstLetterMatcher(" _bl").matches("_top"));
|
||||
assertFalse(firstLetterMatcher("*Ch").matches("char"));
|
||||
assertTrue(firstLetterMatcher("*codes").matches("CFLocaleCopyISOCountryCodes"));
|
||||
}
|
||||
|
||||
private static Matcher firstLetterMatcher(String pattern) {
|
||||
|
||||
@@ -196,7 +196,8 @@ public class MinusculeMatcher implements Matcher {
|
||||
break;
|
||||
}
|
||||
if (next == 0 && myOptions != NameUtil.MatchingCaseSensitivity.NONE && name.charAt(next) != nextChar) {
|
||||
return null;
|
||||
fromIndex = next + 1;
|
||||
continue;
|
||||
}
|
||||
if (upper && next > 0 && !Character.isUpperCase(name.charAt(next))) {
|
||||
fromIndex = next + 1;
|
||||
|
||||
Reference in New Issue
Block a user