1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Spreadsheet: Fix calling variable that wasn't defined

This commit is contained in:
u9g 2022-02-21 18:24:31 -05:00 committed by Ali Mohammad Pur
parent d05fa14e52
commit 678d26dd19

View file

@ -250,7 +250,7 @@ function R(fmt, ...args) {
// ColRow:Col(Row)?(:ColStep:RowStep)?
const start = thisSheet.parse_cell_name(parts[0]);
let end = parts[1];
if (/^[a-zA-Z_]+$/.test(endPart)) end = { column: end, row: undefined };
if (/^[a-zA-Z_]+$/.test(end)) end = { column: end, row: undefined };
else end = thisSheet.parse_cell_name(parts[1]);
parts[2] ??= 1;
parts[3] ??= 1;