Commit b87dbc95 authored by Quxl's avatar Quxl

x

parent de2db11b
......@@ -607,7 +607,7 @@ public class ExportServiceImpl implements ExportService {
Cell cell = sheet.getRow(y-1).getCell(x-1);
if(cell != null) {
String tplValue = cell.getStringCellValue();
if(StringUtil.isNotBlank(tplValue) && tplValue.contains("_")) {
if(StringUtil.isNotBlank(tplValue) && tplValue.matches("(.+)?(_+)(.+)?")) {
cell.setCellValue(tplValue.replaceFirst("_+", value));
} else {
cell.setCellValue(value);
......@@ -669,4 +669,8 @@ public class ExportServiceImpl implements ExportService {
}
}
}
public static void main(String[] args) {
System.out.println("dsfa".matches("(.+)?(_+)(.+)?"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment