This commit is contained in:
linfso 2024-08-04 09:40:17 +08:00
parent b54da02fab
commit 243ffc324c

View File

@ -266,6 +266,7 @@ public class WaybillHelper {
if(!StringUtils.isEmpty(str)){ if(!StringUtils.isEmpty(str)){
str=str.replaceAll("\\n", ","); str=str.replaceAll("\\n", ",");
str=str.replaceAll("\\t", ","); str=str.replaceAll("\\t", ",");
str=str.replaceAll("\\s*", "");
str=str.replaceAll(",+", ","); str=str.replaceAll(",+", ",");
str=StringUtils.removeEnd(str, ","); str=StringUtils.removeEnd(str, ",");
} }