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.
This commit is contained in:
Martin Puppe 2021-10-12 15:53:57 +02:00 committed by Edward Loveall
parent e127a67c6b
commit 0d9170b8d6
No known key found for this signature in database
GPG key ID: A7606DFEC2BA731F

View file

@ -53,7 +53,7 @@ class Home::IndexPage < MainLayout
end end
li do li do
strong "Include pattern: " strong "Include pattern: "
code ".*medium.com/(.*)" code "^https?://(?:.*\\.)*medium.com/(.*)$"
end end
li do li do
strong "Redirect to: " strong "Redirect to: "