|
@@ -183,9 +183,11 @@ public final class ReportParseUtils {
|
|
if (!StrUtil.isNullOrUndefined(fieldValue)) {
|
|
if (!StrUtil.isNullOrUndefined(fieldValue)) {
|
|
// 特殊字符替换,空格替换为空字符
|
|
// 特殊字符替换,空格替换为空字符
|
|
fieldValue = fieldValue
|
|
fieldValue = fieldValue
|
|
- .replace("\r", StrUtil.EMPTY)
|
|
|
|
- .replace(";", ";")
|
|
|
|
- .replaceAll(" ", StrUtil.EMPTY);
|
|
|
|
|
|
+ .replaceAll("\r", StrUtil.EMPTY)
|
|
|
|
+ .replaceAll(";", ";")
|
|
|
|
+ .replaceAll(":", ":")
|
|
|
|
+ .replaceAll(" ", StrUtil.EMPTY)
|
|
|
|
+ .replaceAll(":", StrUtil.EMPTY);
|
|
if (replaceParentheses) {
|
|
if (replaceParentheses) {
|
|
// 正则表达式匹配中文括号及其内容,并替换为空字符串
|
|
// 正则表达式匹配中文括号及其内容,并替换为空字符串
|
|
fieldValue = Pattern.compile("[(|(][^)]*[)|)]").matcher(fieldValue).replaceAll(StrUtil.EMPTY);
|
|
fieldValue = Pattern.compile("[(|(][^)]*[)|)]").matcher(fieldValue).replaceAll(StrUtil.EMPTY);
|