From 3f323c1825624219146509b61a498049b3e83dc7 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Fri, 14 Apr 2023 19:05:17 +0300 Subject: [PATCH] Fixed breezewiki Reverse not working https://github.com/libredirect/libredirect/issues/668 --- src/assets/javascripts/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index f78bb2f..5fc4997 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -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