Skip to content

Commit 2c7fd82

Browse files
committed
Consistent regexes
1 parent c52b73f commit 2c7fd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xlsx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function valueOf(cell) {
6868

6969
function parseRange(specifier = ":", {columnCount, rowCount}) {
7070
specifier += "";
71-
if (!specifier.match(/^[A-Z]*[0-9]*:[A-Z]*[0-9]*$/))
71+
if (!specifier.match(/^[A-Z]*\d*:[A-Z]*\d*$/))
7272
throw new Error("Malformed range specifier");
7373
const [[c0 = 0, r0 = 0], [c1 = columnCount - 1, r1 = rowCount - 1]] =
7474
specifier.split(":").map(fromCellReference);

0 commit comments

Comments
 (0)