fix case when fetching pixiv sources when illust_id param comes before mode

This commit is contained in:
r888888888
2017-08-23 17:50:33 -07:00
parent e498e03ceb
commit d124ff8128
2 changed files with 15 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ module Sources
end
def work_page?
return true if url =~ %r!(?:#{WEB}|#{TOUCH})/member_illust\.php\?mode=(?:medium|big|manga|manga_big)&illust_id=\d+!i
return true if url =~ %r!(?:#{WEB}|#{TOUCH})/member_illust\.php! && url =~ %r!mode=(?:medium|big|manga|manga_big)! && url =~ %r!illust_id=\d+!
return true if url =~ %r!(?:#{WEB}|#{TOUCH})/i/\d+$!i
return false
end