From 91d420b4606b23d3d8b4105382a6773aa7f26d2a Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Mon, 10 Oct 2022 04:32:20 +0200 Subject: Fix regex since Fandom subdomains can contain hyphens (#37) For example, it wouldn't redirect https://kimetsu-no-yaiba.fandom.com/wiki/Kimetsu_no_Yaiba_Wiki, now it would Reviewed-on: https://codeberg.org/LibRedirect/libredirect/pulls/37 Co-authored-by: Austin Huang Co-committed-by: Austin Huang --- src/config/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config') diff --git a/src/config/config.json b/src/config/config.json index afeb1151..9b77e405 100644 --- a/src/config/config.json +++ b/src/config/config.json @@ -456,7 +456,7 @@ } }, "targets": [ - "^https?:\\/{2}(?:[a-zA-Z0-9]+\\.)?fandom\\.com(?=(?:\\/wiki)|(?:\\/?$))" + "^https?:\\/{2}(?:[a-zA-Z0-9-]+\\.)?fandom\\.com(?=(?:\\/wiki)|(?:\\/?$))" ], "name": "Fandom", "options": { -- cgit 1.4.1