From 828a30534139e2c0dc046e4145e0a9ce49c61a21 Mon Sep 17 00:00:00 2001 From: Jacob Donenfeld Date: Sun, 14 Aug 2022 20:34:19 +0000 Subject: README AMP regex tolerance for /s/ Add tolerance to an AMP url that contains /s/ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dc66af2..22e4719 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ ### AMP redirect - Example URL: `https://www.google.com/amp/www.example.com/amp/document` -- Include pattern: `^(?:https?://)www.(?:google|bing).com/amp/(.*)` +- Include pattern: `^(?:https?://)www.(?:google|bing).com/amp/(?:s/)?(.*)` - Redirect to: `https://$1` - Pattern type: Regular Expression - Description: AMP is bad: -- cgit v1.2.3