Pre Merge pull request !460 from 寄叶/N/A

This commit is contained in:
寄叶 2024-06-13 06:59:46 +00:00 committed by Gitee
commit b95b71b0bc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -971,7 +971,7 @@ public class ExcelUtil<T>
// 对于任何以表达式触发字符 =-+@开头的单元格直接使用tab字符作为前缀防止CSV注入
if (StringUtils.startsWithAny(cellValue, FORMULA_STR))
{
cellValue = RegExUtils.replaceFirst(cellValue, FORMULA_REGEX_STR, "\t$0");
cellValue = "\t" + cellValue;
}
if (value instanceof Collection && StringUtils.equals("[]", cellValue))
{