Skip to content

Commit

Permalink
Update leijing.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fangkuia authored Jan 9, 2025
1 parent b390553 commit 2647856
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/leijing.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ $('.topicItem').each((index, each) => {

const href = $(each).find('h2 a').attr('href');
const title = $(each).find('h2 a').text()
const match = title.match(/([\u4e00-\u9fa5]+(?:\s*[\u4e00-\u9fa5]*)*)/g);
const dramaName = match ? match[0] : title;
const regex = /(?:【.*?】)?(?:(.*?))?([^\s.(]+(?:\s+[^\s.(]+)*)/;
const match = title.match(regex);
const dramaName = match ? match[1] : title;
const r = $(each).find('.summary').text();
const tag = $(each).find('.tag').text();

Expand Down Expand Up @@ -167,8 +168,9 @@ $('.topicItem').each((index, each) => {

const href = $(each).find('h2 a').attr('href');
const title = $(each).find('h2 a').text()
const match = title.match(/([\u4e00-\u9fa5]+(?:\s*[\u4e00-\u9fa5]*)*)/g);
const dramaName = match ? match[0] : title;
const regex = /(?:【.*?】)?(?:(.*?))?([^\s.(]+(?:\s+[^\s.(]+)*)/;
const match = title.match(regex);
const dramaName = match ? match[1] : title;
const r = $(each).find('.summary').text();
const tag = $(each).find('.tag').text();

Expand Down

0 comments on commit 2647856

Please sign in to comment.