mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 00:27:23 +00:00
eh&nh: fix url open (#142)
This commit is contained in:
@@ -7,7 +7,7 @@ class Ehentai extends ComicSource {
|
||||
// unique id of the source
|
||||
key = "ehentai"
|
||||
|
||||
version = "1.1.3"
|
||||
version = "1.1.4"
|
||||
|
||||
minAppVersion = "1.0.0"
|
||||
|
||||
@@ -1182,7 +1182,7 @@ class Ehentai extends ComicSource {
|
||||
if(url.includes('?')) {
|
||||
url = url.split('?')[0]
|
||||
}
|
||||
let reg = RegExp("https?://(e-|ex)hentai.org/g/(\\d+)/(\\w+)/")
|
||||
let reg = RegExp("https?://(e-|ex)hentai.org/g/(\\d+)/(\\w+)/?$")
|
||||
let match = reg.exec(url)
|
||||
if(match) {
|
||||
return `${this.baseUrl}/g/${match[2]}/${match[3]}/`
|
||||
|
Reference in New Issue
Block a user