Skip to content

Commit

Permalink
[CodeFactor] Apply fixes to commit 11929aa
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Dec 15, 2024
1 parent 11929aa commit a3a56d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/manga/asurascans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AsuraScans extends MangaParser {
const { data }: AxiosResponse = await this.client.get(`${this.baseUrl}/series/${chapterId}`);
const chapMatch = data.replace(/\\/g, '').match(/pages.*:(\[{['"]order["'].*?}\])/);
if (!chapMatch) throw new Error('Parsing error');
let chap: { order: string; url: string }[] = JSON.parse(chapMatch[1]);
const chap: { order: string; url: string }[] = JSON.parse(chapMatch[1]);
return chap.map(
(page, index): IMangaChapterPage => ({
page: index + 1,
Expand Down

0 comments on commit a3a56d7

Please sign in to comment.