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
parent
commit
413cb5c596
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rules/regexp/headers.lua

2
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'

Loading…
Cancel
Save