From 5a924aa3bc890f33039011c3e1204c1f5580a763 Mon Sep 17 00:00:00 2001 From: william Date: Tue, 31 May 2022 11:19:30 +0800 Subject: [PATCH] Fix: the cell case "B1D1E2" if the cell is "B1D1E2", orginal is "BDE", it is not the idea case? should be "B"? --- grid-app/python/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid-app/python/init.py b/grid-app/python/init.py index 5bff57a..a45db76 100644 --- a/grid-app/python/init.py +++ b/grid-app/python/init.py @@ -75,7 +75,7 @@ def getReferenceRowIndex(reference): return int(re.findall(r'\d+', reference)[0]) def getReferenceColumnIndex(reference): - return letterToIndex(''.join(re.findall(r'[a-zA-Z]', reference))) + return letterToIndex(re.findall(r'[a-zA-Z]+', reference)[0]) def letterToIndex(letters): columns = len(letters) - 1