@@ -115,7 +115,7 @@ class HotNovelPubPlugin implements Plugin.PluginBase {
|
||||
);
|
||||
|
||||
let chapterText =
|
||||
body.match(/<div id="content-item" ([\s\S]*?)<\/div>/g)?.[0] || '';
|
||||
body.match(/<div id="content-item" ([\s\S]*?)<\/div>/)?.[0] || '';
|
||||
|
||||
if (chapterText) {
|
||||
const result = await fetchApi(
|
||||
|
||||
@@ -140,7 +140,7 @@ class IfreedomPlugin implements Plugin.PluginBase {
|
||||
res.text(),
|
||||
);
|
||||
let chapterText =
|
||||
body.match(/<article id="([\s\S]*?)<\/article>/g)?.[0] || '';
|
||||
body.match(/<article id="([\s\S]*?)<\/article>/)?.[0] || '';
|
||||
chapterText = chapterText.replace(/<script[^>]*>[\s\S]*?<\/script>/gim, '');
|
||||
|
||||
if (chapterText.includes('<img')) {
|
||||
|
||||
Reference in New Issue
Block a user