Skip to content

Commit

Permalink
修改了匹配条目的正则表达式,应对部分条目没有作者信息的特殊情况
Browse files Browse the repository at this point in the history
  • Loading branch information
sddiky committed Mar 2, 2023
1 parent 42edf09 commit e497310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/50forum/zhuanjia.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = async (ctx) => {
.map((item) => {
item = $(item);
const link = rootUrl + item.attr('href');
const reg = /^(.+)\[(.+)\](.+)$/;
const reg = /^(.+)\[(.*)\](.+)$/;
const keyword = reg.exec(item.text().trim());
return {
title: keyword[1],
Expand Down

0 comments on commit e497310

Please sign in to comment.