This commit is contained in:
@@ -209,15 +209,14 @@ function extractTakesPlace(sheet) {
|
||||
const nextCell = sheet.getCell(`B${i}`);
|
||||
|
||||
if (nextCell.isMerged) {
|
||||
const cell = nextCell.master
|
||||
|
||||
str += `\n${cell.value.trim()}`
|
||||
str += `\n${cell.master?.value?.trim() || ""}`
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
const tryCells = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"];
|
||||
const threshold = 20;
|
||||
let con = false;
|
||||
|
||||
for (const cellTest of tryCells) {
|
||||
const cellTry = sheet.getCell(`${cellTest}${i}`)
|
||||
@@ -226,11 +225,16 @@ function extractTakesPlace(sheet) {
|
||||
if (cellValue.length >= threshold) {
|
||||
str += `\n${cellValue}`;
|
||||
i++;
|
||||
continue;
|
||||
con = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
if (con) {
|
||||
continue;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return str.trim();
|
||||
@@ -318,4 +322,4 @@ function formatNowTime() {
|
||||
);
|
||||
}
|
||||
|
||||
parseV3("db/current.xlsx")
|
||||
//parseV3("db/current.xlsx")
|
||||
|
||||
Reference in New Issue
Block a user