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

Commit

Permalink
Merge pull request #65 from yjlintw/styleupdate
Browse files Browse the repository at this point in the history
clean dm5 chapter grabbed result
  • Loading branch information
yjlintw authored Apr 24, 2017
2 parents c3d1328 + b56ee05 commit ea0b545
Show file tree
Hide file tree
Showing 2 changed files with 3 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.9",
"version": "0.1.9.1",
"description": "A simple comic reader app",
"main": "main.js",
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion renderer-process/parsers/dm5.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ function onChapterGrabbed(error, response, body) {
var titlekey = this.titlekey;
tmp.each(function(i, e){
if($(e).attr('href') == undefined) return;
var ch_name = $(e).text();
var ch_name = $(e).text().replace(/.*(?:漫畫|漫画)\s*/g, '');
console.log(ch_name);
var rel_link = $(e).attr('href');
if (rel_link.includes("javascript")) return;
var ch_link = baseuri + rel_link;
Expand Down

0 comments on commit ea0b545

Please sign in to comment.