From 2b3d7bb3feb783a55861b2ff7381e865b647ff35 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 18 Jun 2019 18:44:02 -0700 Subject: [PATCH] Make AMP detection slightly more robust The AMP detection causes false positives with sites that didn't have the amp attribute in the `` tag, but loaded an AMP related script, as AMP's JS adds dynamic amp-* attributes to the ``. This also updates our name (now just AMP), and the website (now amp.dev). --- src/apps.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps.json b/src/apps.json index 10a754d0d..058f03078 100644 --- a/src/apps.json +++ b/src/apps.json @@ -107,13 +107,13 @@ }, "website": "http://awstats.sourceforge.net" }, - "Accelerated Mobile Pages": { + "AMP": { "cats": [ 12 ], - "html": "]* (?:amp|⚡)", + "html": "]* (?:amp|⚡)[^-]", "icon": "Accelerated-Mobile-Pages.svg", - "website": "https://www.ampproject.org" + "website": "https://www.amp.dev" }, "Azure": { "cats": [