Comparing version 1.4.10 to 1.4.12
@@ -97,10 +97,19 @@ /** | ||
} | ||
var matchCol = value.match(/[A-Z]+/); | ||
var col; | ||
var colNumber; | ||
if (matchCol) { | ||
col = matchCol[0]; | ||
colNumber = this.l2n(col); | ||
} | ||
var matchRow = value.match(/\d+/); | ||
var row; | ||
var rowNumber; | ||
if (matchRow) { | ||
row = matchRow[0]; | ||
rowNumber = parseInt(row, 10); | ||
} | ||
var col = value.match(/[A-Z]+/)[0]; | ||
var colNumber = this.l2n(col); | ||
var row = value.match(/\d+/)[0]; | ||
var rowNumber = parseInt(row, 10); | ||
// in case $row$col | ||
value = col + row; | ||
value = (col || '') + (row || ''); | ||
@@ -111,3 +120,3 @@ var address = { | ||
row: rowNumber, | ||
$col$row: '$' + col + '$' + row | ||
$col$row: '$' + (col || '') + '$' + (row || '') | ||
}; | ||
@@ -114,0 +123,0 @@ |
@@ -1337,3 +1337,3 @@ declare interface Buffer { } | ||
// commit all worksheets, then add suplimentary files | ||
commit(): void; | ||
commit(): Promise<void>; | ||
addStyles(): Promise<void>; | ||
@@ -1340,0 +1340,0 @@ addThemes(): Promise<void>; |
{ | ||
"name": "exceljs", | ||
"version": "1.4.10", | ||
"version": "1.4.12", | ||
"description": "Excel Workbook Manager - Read and Write xlsx and csv Files.", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3199754
53314
1841