Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Commit

Permalink
update a logic bug in readcomicbooksonline.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yjlintw committed May 11, 2017
1 parent dda9317 commit ae8f52a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "comic-reader",
"productName": "Comic Reader",
"author": "Team Comic Reader",
"version": "0.1.41",
"version": "0.1.42",
"description": "Quickly, smoothly and cooler reading experience. The best move to read comics.",
"main": "main.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion renderer-process/parsers/readcomicbooksonline.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function onSingleChapterLoaded(error, response, body) {
var ch_group = this.ch_group;
var ch_key = this.ch_key;
async.times(num_pages, function(i, next) {
var rel_img_url = rel_img_url_template.replace(/-\d*\./g, "-" + util.pad(i+1, 3) + ".");
var rel_img_url = rel_img_url_template.replace(/(\d*)(\.jpg|\.png)$/g, util.pad(i+1, 3) + "$2");
var img_url = baseuri + "/reader/" + rel_img_url;
request({
method:'GET',
Expand Down

0 comments on commit ae8f52a

Please sign in to comment.