* 兼容某些特殊的xls: 修改了内置的样式导致判断样式错误

This commit is contained in:
Jiaju Zhuang 2024-08-06 17:43:36 +08:00
parent 1cbc7da53f
commit e2f302f4cf

View File

@ -21,6 +21,8 @@ import com.alibaba.excel.util.StringUtils;
**/
public class BuiltinFormats {
private static final String RESERVED = "reserved-";
public static short GENERAL = 0;
public static final String[] BUILTIN_FORMATS_ALL_LANGUAGES = {
@ -491,7 +493,7 @@ public class BuiltinFormats {
}
// In other cases, give priority to using the externally provided format
if (!StringUtils.isEmpty(defaultFormat) && !defaultFormat.startsWith("reserved-")) {
if (!StringUtils.isEmpty(defaultFormat) && !defaultFormat.startsWith(RESERVED)) {
return defaultFormat;
}