Pre Merge pull request !215 from weiwsy/master

This commit is contained in:
weiwsy 2020-09-30 15:44:56 +08:00 committed by Gitee
commit b8dd27c6dd
1 changed files with 414 additions and 408 deletions

View File

@ -374,6 +374,12 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
} }
if (s.indexOf(SEPARATOR) == -1) if (s.indexOf(SEPARATOR) == -1)
{ {
if (s.length()>0 && Character.isUpperCase(s.charAt(0))) {
StringBuilder sb = new StringBuilder(s.length());
sb.append(Character.toLowerCase(s.charAt(0)));
sb.append(s.substring(1));
return sb.toString();
}
return s; return s;
} }
s = s.toLowerCase(); s = s.toLowerCase();