From 0d9170b8d64fcdbe6bef116106a6e2b20183944b Mon Sep 17 00:00:00 2001 From: Martin Puppe Date: Tue, 12 Oct 2021 15:53:57 +0200 Subject: [PATCH] Improve proposed pattern for Redirector extension The old pattern matches all host names that end with medium.com. The new pattern matches only medium.com and its sub-domains. For example, the old pattern would have matched https://foomedium.com/@user/post-123456abcdef. --- src/pages/home/index_page.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/index_page.cr b/src/pages/home/index_page.cr index a126edc..13e30fa 100644 --- a/src/pages/home/index_page.cr +++ b/src/pages/home/index_page.cr @@ -53,7 +53,7 @@ class Home::IndexPage < MainLayout end li do strong "Include pattern: " - code ".*medium.com/(.*)" + code "^https?://(?:.*\\.)*medium.com/(.*)$" end li do strong "Redirect to: "