Skip to content

Commit

Permalink
✨ (rule): 添加微信支付零钱通收益的测试用例和正则表达式注释 #470
Browse files Browse the repository at this point in the history
新增10月收益和当前累计收益的测试数据,并更新正则表达式注释以匹配新的收益格式。
  • Loading branch information
AnkioTomas committed Dec 18, 2024
1 parent 0c0a444 commit cc50745
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const TITLE_WECHAT = [
// 正则表达式和处理函数的映射关系
const rules =[
[
//10月收益¥2.03\n当前累计收益¥123.43
/(\d+)月收益¥(\d+\.\d{2})\n当前累计收益¥(\d+\.\d{2})$/,
(match,t,item) => {
const [, month, money, totalMoney] = match;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,16 @@ test('微信支付零钱通收益', () =>
"time": 1733110247109,
"channel": '微信[微信支付-零钱通收益月报]',
},
{
"type": "Income",
"money": 2.03,
"fee": 0,
"shopName": '零钱通',
"shopItem": '当前累计收益¥123.43',
"accountNameFrom": '零钱通',
"accountNameTo": '',
"currency": 'CNY',
"time": 1730515985651,
"channel": '微信[微信支付-零钱通收益月报]',
},
]));
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"mMap": {
"description": "10月收益¥2.03\n当前累计收益¥123.43",
"source": "微信支付",
"type": 5,
"appId": "",
"msgId": 99064,
"title": "零钱通收益月报",
"display_name": "零钱通",
"hookerUser": "应该是个亲妈",
"cachedPayTools": "零钱",
"cachedPayMoney": "¥35.00",
"cachedPayShop": "向御用产品经理(*炎)转账",
"t": 1730515985651
}
}

0 comments on commit cc50745

Please sign in to comment.