Fixed breezewiki Reverse not working https://github.com/libredirect/libredirect/issues/668
This commit is contained in:
parent
2b2ca488c2
commit
3f323c1825
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue