Skip to content

Commit 87d6eb6

Browse files
committed
//2022-09-22 参数统一转换为大写,避免传入小写的参数时出错
1 parent d436511 commit 87d6eb6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/MiniExcel/Utils/ReferenceHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ internal static partial class ReferenceHelper
7272
/// <param name="row">The row, 1-based.</param>
7373
public static bool ParseReference(string value, out int column, out int row)
7474
{
75-
column = 0;
75+
//2022-09-22 参数统一转换为大写,避免传入小写的参数时出错
76+
value = value.ToUpper();
77+
column = 0;
7678
var position = 0;
7779
const int offset = 'A' - 1;
7880

0 commit comments

Comments
 (0)