From 4474ab1d57f76f00480863765230a2d2dc833a12 Mon Sep 17 00:00:00 2001 From: Lanwood <917375123@qq.com> Date: Sat, 9 May 2026 15:03:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(xlsx):=20=E4=BF=AE=E5=A4=8D=20LuckyExcel=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E6=95=B0=E6=8D=AE=E6=A0=A1=E9=AA=8C=E6=97=B6?= =?UTF-8?q?=20matchType=20=E6=9C=AA=E6=98=A0=E5=B0=84=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E5=B4=A9=E6=BA=83=20(#730)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(xlsx): 修复 LuckyExcel 解析数据校验时 matchType 未映射导致的崩溃 * fix(xlsx): improve matchType handling in data verification logic * fix(xlsx): simplify matchType mapping logic in LuckySheet class --------- Co-authored-by: 何武德 --- server/src/main/resources/static/xlsx/luckyexcel.umd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/resources/static/xlsx/luckyexcel.umd.js b/server/src/main/resources/static/xlsx/luckyexcel.umd.js index 961b6062..85d33de1 100644 --- a/server/src/main/resources/static/xlsx/luckyexcel.umd.js +++ b/server/src/main/resources/static/xlsx/luckyexcel.umd.js @@ -4433,7 +4433,8 @@ var LuckySheet = /** @class */function (_super) { var _hint = method_1.getXmlAttibute(attrList, "prompt", null); var _hintShow = _hint ? true : false; var matchType = constant_1.COMMON_TYPE2.includes(_type) ? "common" : _type; - _type2 = operator ? constant_1.DATA_VERIFICATION_TYPE2_MAP[matchType][operator] : "bw"; + var _type2Map = constant_1.DATA_VERIFICATION_TYPE2_MAP[matchType]; + _type2 = operator ? (_type2Map ? _type2Map[operator] : "bw") : "bw"; // mobile phone number processing if (_type === "text_content" && ((_value1 === null || _value1 === void 0 ? void 0 : _value1.includes("LEN")) || (_value1 === null || _value1 === void 0 ? void 0 : _value1.includes("len"))) && (_value1 === null || _value1 === void 0 ? void 0 : _value1.includes("=11"))) { _type = "validity"; @@ -7421,4 +7422,3 @@ module.exports = main_1.LuckyExcel; },{"./main":19}]},{},[20])(20) }); -