修改: 截取前缀方法忽略大小写

master
曹世达 6 months ago
parent 9432db6ad1
commit 301e0cf0e0

@ -15,7 +15,7 @@ public class StrUtils {
}
public static String removePrefix(String str, String prefix) {
if (str.startsWith(prefix)) {
if (str.toLowerCase().startsWith(prefix)) {
return str.substring(prefix.length());
} else {
return str;

Loading…
Cancel
Save