mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
RUBY-5431 Files with two underscores in the name is invisible to the Camel Case file search
This commit is contained in:
@@ -159,7 +159,7 @@ public class NameUtil {
|
||||
buffer.append(Character.toLowerCase(c));
|
||||
}
|
||||
if (!firstIdentifierLetter) {
|
||||
buffer.append("|[A-Za-z\\s0-9\\$]*[_-][");
|
||||
buffer.append("|[A-Za-z\\s0-9\\$]*[_-]+[");
|
||||
buffer.append(c);
|
||||
buffer.append(Character.toLowerCase(c));
|
||||
buffer.append("]");
|
||||
@@ -172,7 +172,7 @@ public class NameUtil {
|
||||
buffer.append(Character.toUpperCase(c));
|
||||
buffer.append(']');
|
||||
if (lowerCaseWords) {
|
||||
buffer.append("([a-z\\s0-9\\$]*[-_])?");
|
||||
buffer.append("([a-z\\s0-9\\$]*[-_]+)?");
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -195,7 +195,7 @@ public class NameUtil {
|
||||
firstIdentifierLetter = true;
|
||||
}
|
||||
else if (c == ' ') {
|
||||
buffer.append("([a-z\\s0-9\\$_-]*[\\ _-])+");
|
||||
buffer.append("([a-z\\s0-9\\$_-]*[\\ _-]+)+");
|
||||
firstIdentifierLetter = true;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user