Update StringUtils.java (#10936)
method startsWith, 当 ignoreCase 为 true 时,lowerCasePrefix 值不正确
This commit is contained in:
parent
d756cdc6de
commit
9f28ae55a2
@ -400,7 +400,7 @@ public class StringUtils {
|
||||
}
|
||||
if (ignoreCase) {
|
||||
String lowerCaseStr = str.toString().toLowerCase();
|
||||
String lowerCasePrefix = str.toString().toLowerCase();
|
||||
String lowerCasePrefix = prefix.toString().toLowerCase();
|
||||
return lowerCaseStr.startsWith(lowerCasePrefix);
|
||||
} else {
|
||||
return str.toString().startsWith(prefix.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user