Browse Source
Merge pull request #4558 from twesterhever/temp-detect-google-amp-urls
[Minor] Tweak HAS_GOOGLE_REDIR to detect Google AMP URLs as well
pull/4560/head
Vsevolod Stakhov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
rules/regexp/headers.lua
|
|
|
@ -912,7 +912,7 @@ reconf['HAS_GUC_PROXY_URI'] = { |
|
|
|
} |
|
|
|
|
|
|
|
reconf['HAS_GOOGLE_REDIR'] = { |
|
|
|
re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/url\\?/{url}i', |
|
|
|
re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/(amp\\/s\\/|url\\?)/{url}i', |
|
|
|
description = 'Has google.com/url or alike Google redirection URL', |
|
|
|
score = 1.0, |
|
|
|
group = 'url' |
|
|
|
|