From 753094399298c31ae9b1e6257b0a6214550fa0ea Mon Sep 17 00:00:00 2001 From: ankio Date: Wed, 18 Dec 2024 13:58:24 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20(common):=20=E5=90=88=E5=B9=B6=20`s?= =?UTF-8?q?plitShop`=20=E5=87=BD=E6=95=B0=E5=88=B0=20`common/index.js`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 `splitShop` 函数从 `common/Html.js` 移动到 `common/index.js`,以简化模块依赖关系。 --- .../main.js" | 3 +-- src/utils/index.js | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\345\205\254\344\274\227\345\217\267\346\213\233\345\225\206\351\223\266\350\241\214/main.js" "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\345\205\254\344\274\227\345\217\267\346\213\233\345\225\206\351\223\266\350\241\214/main.js" index 592b631..761dc5f 100644 --- "a/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\345\205\254\344\274\227\345\217\267\346\213\233\345\225\206\351\223\266\350\241\214/main.js" +++ "b/src/rule/com.tencent.mm/app/\345\276\256\344\277\241\345\205\254\344\274\227\345\217\267\346\213\233\345\225\206\351\223\266\350\241\214/main.js" @@ -1,5 +1,4 @@ -import { BillType, Currency, formatDate, parseWechat, RuleObject, toFloat } from 'common/index.js'; -import { splitShop } from 'common/Html.js'; +import { BillType, Currency, formatDate, parseWechat, RuleObject, toFloat, splitShop } from 'common/index.js'; // 定义源名称和需要匹配的标题数组 const SOURCE = '招商银行'; diff --git a/src/utils/index.js b/src/utils/index.js index c4b7cd8..336bd6c 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,6 +1,6 @@ import { BillType } from './BillType.js'; import { Currency, transferCurrency } from './Currency.js'; -import { findNonEmptyString, stripHtml } from './Html.js'; +import { findNonEmptyString, stripHtml,splitShop } from './Html.js'; import { formatDate, isTimeInRange } from './Time.js'; import { toDoubleFloat, toFloat } from './Number.js'; import { RuleObject } from './RuleObject.js'; @@ -14,6 +14,7 @@ export { transferCurrency, stripHtml, findNonEmptyString, + splitShop, isTimeInRange, formatDate, toFloat, @@ -21,5 +22,5 @@ export { RuleObject, AliTools, splitSms, - parseWechat + parseWechat, };