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)
|
resolve(config.services[service].url + url.pathname + url.search)
|
||||||
return
|
return
|
||||||
case "fandom":
|
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) {
|
if (regex) {
|
||||||
resolve(`https://${regex[1]}.fandom.com/wiki/${regex[2]}`)
|
resolve(`https://${regex[1]}.fandom.com/wiki/${regex[2]}`)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue