This commit is contained in:
ManeraKai 2023-04-14 19:05:17 +03:00
parent 2b2ca488c2
commit 3f323c1825
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ function reverse(url) {
resolve(config.services[service].url + url.pathname + url.search)
return
case "fandom":
let regex = url.pathname.match(/^\/([a-zA-Z0-9-]+)\/wiki\/([a-zA-Z0-9-]+)/)
let regex = url.pathname.match(/^\/([a-zA-Z0-9-]+)\/wiki\/(.*)/)
if (regex) {
resolve(`https://${regex[1]}.fandom.com/wiki/${regex[2]}`)
return