mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 08:27:24 +00:00
eh&nh: fix url open (#142)
This commit is contained in:
@@ -7,7 +7,7 @@ class Nhentai extends ComicSource {
|
||||
// unique id of the source
|
||||
key = "nhentai"
|
||||
|
||||
version = "1.0.5"
|
||||
version = "1.0.6"
|
||||
|
||||
minAppVersion = "1.0.0"
|
||||
|
||||
@@ -523,7 +523,7 @@ class Nhentai extends ComicSource {
|
||||
'nhentai.net',
|
||||
],
|
||||
linkToId: (url) => {
|
||||
let regex = /\/g\/(\d+)\//g
|
||||
let regex = /\/g\/(\d+)\/?$/g
|
||||
let match = regex.exec(url)
|
||||
if(match) {
|
||||
return match[1]
|
||||
|
Reference in New Issue
Block a user