eh&nh: fix url open (#142)

This commit is contained in:
Pacalini
2025-08-24 18:09:05 +08:00
committed by GitHub
parent 8a26cff469
commit ca2f626483
3 changed files with 6 additions and 6 deletions

View File

@@ -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]