Skip to content

Commit bbc9371

Browse files
Fixing issue 22 and releasing version 2.2.3
1 parent 5d5578c commit bbc9371

File tree

3 files changed

+1662
-2127
lines changed

3 files changed

+1662
-2127
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function getWorksheetColumnWidths (worksheet: WorkSheet, extraLength: number = 1
4646
return columnLetters.map((column) => {
4747
// Cells that belong to this column
4848
const columnCells: string[] = Object.keys(worksheet).filter((cell) => {
49-
return cell.charAt(0) === column
49+
return cell.charAt(0) === column || cell.slice(0, 2) === column
5050
})
5151

5252
const maxWidthCell = columnCells.reduce((previousCell, currentCell) => {

0 commit comments

Comments
 (0)