diff --git a/src/pages/studyView/addChartButton/customCaseSelection/CustomCaseSelectionUtils.tsx b/src/pages/studyView/addChartButton/customCaseSelection/CustomCaseSelectionUtils.tsx index dff42516fe7..b11713ce4ee 100644 --- a/src/pages/studyView/addChartButton/customCaseSelection/CustomCaseSelectionUtils.tsx +++ b/src/pages/studyView/addChartButton/customCaseSelection/CustomCaseSelectionUtils.tsx @@ -70,7 +70,7 @@ export function getLine(line: string): InputLine { parsedResult.caseId = content[0]; } else if (content.length > 1) { parsedResult.studyId = content[0]; - const groupInfo = content[1].split(/\s|\t/g); + const groupInfo = content[1].split(/[\s,\t]+/g); if (groupInfo.length > 1) { parsedResult.value = groupInfo[1]; }