From 87d6eb65b35952bc4ecc0e0e8eb0f1920b0a6292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BB=E6=AD=8C=E7=AC=91?= <276397082@qq.com> Date: Thu, 22 Sep 2022 19:29:41 +0800 Subject: [PATCH] =?UTF-8?q?//2022-09-22=20=E5=8F=82=E6=95=B0=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E8=BD=AC=E6=8D=A2=E4=B8=BA=E5=A4=A7=E5=86=99=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=BC=A0=E5=85=A5=E5=B0=8F=E5=86=99=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=97=B6=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MiniExcel/Utils/ReferenceHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MiniExcel/Utils/ReferenceHelper.cs b/src/MiniExcel/Utils/ReferenceHelper.cs index 4cd2db7..acfe5a4 100644 --- a/src/MiniExcel/Utils/ReferenceHelper.cs +++ b/src/MiniExcel/Utils/ReferenceHelper.cs @@ -72,7 +72,9 @@ /// The row, 1-based. public static bool ParseReference(string value, out int column, out int row) { - column = 0; + //2022-09-22 参数统一转换为大写,避免传入小写的参数时出错 + value = value.ToUpper(); + column = 0; var position = 0; const int offset = 'A' - 1;