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
1 changed files with 1 additions and 1 deletions

View File

@ -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: "