RUBY-5431 Files with two underscores in the name is invisible to the Camel Case file search

This commit is contained in:
Oleg Shpynov
2010-10-08 17:38:07 +04:00
parent d1d960cc9f
commit e093151afa
@@ -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 {