Commit e5661e20 authored by Fischer, Tim's avatar Fischer, Tim
Browse files

refined splitting

parent 71618e0f
......@@ -29,8 +29,8 @@ public class SmartExcelSheetBundlesSetSource implements BundlesSetSource {
String sheetName = sheet.getSheetName();
String sheetType = sheet.getSheetName();
if(sheetName.contains(";")) {
sheetType = sheetName.substring(sheetName.indexOf(";")+1);
this.reference = sheetName.substring(0, sheetName.indexOf(";")) + "-" + UUID.randomUUID().toString() + "@@" + sheetType;
sheetType = sheetName.split(";")[1];
this.reference = sheetName.split(";")[0] + "##" + UUID.randomUUID().toString() + "@@" + sheetType;
} else {
this.reference = "excel-" + UUID.randomUUID().toString() + "@@" + sheetName;
}
......
Supports Markdown
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