Skip to content

Commit

Permalink
♻️ (common): 合并 splitShop 函数到 common/index.js
Browse files Browse the repository at this point in the history
将 `splitShop` 函数从 `common/Html.js` 移动到 `common/index.js`,以简化模块依赖关系。
  • Loading branch information
AnkioTomas committed Dec 18, 2024
1 parent 1b38b9e commit 7530943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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 = '招商银行';
Expand Down
5 changes: 3 additions & 2 deletions src/utils/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -14,12 +14,13 @@ export {
transferCurrency,
stripHtml,
findNonEmptyString,
splitShop,
isTimeInRange,
formatDate,
toFloat,
toDoubleFloat,
RuleObject,
AliTools,
splitSms,
parseWechat
parseWechat,
};

0 comments on commit 7530943

Please sign in to comment.