Skip to content

Commit ecbde5f

Browse files
authored
fix: Madara Double Slashes (#2021)
1 parent 09ed25e commit ecbde5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/multisrc/madara/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class MadaraPlugin implements Plugin.PluginBase {
149149
const novel: Plugin.NovelItem = {
150150
name: novelName,
151151
cover: novelCover,
152-
path: novelUrl.replace(/https?:\/\/.*?\//, '/'),
152+
path: novelUrl.replace(/https?:\/\/.*?\//, ''),
153153
};
154154
novels.push(novel);
155155
},
@@ -347,7 +347,7 @@ class MadaraPlugin implements Plugin.PluginBase {
347347
if (chapterUrl && chapterUrl != '#' && !(locked && this.hideLocked)) {
348348
chapters.push({
349349
name: chapterName,
350-
path: chapterUrl.replace(/https?:\/\/.*?\//, '/'),
350+
path: chapterUrl.replace(/https?:\/\/.*?\//, ''),
351351
releaseTime: releaseDate || null,
352352
chapterNumber: totalChapters - chapterIndex,
353353
});

0 commit comments

Comments
 (0)