Make AMP detection slightly more robust

The AMP detection causes false positives with sites that didn't have the amp attribute in the `<html>` tag, but loaded an AMP related script, as AMP's JS adds dynamic amp-* attributes to the `<html>`.

This also updates our name (now just AMP), and the website (now amp.dev).
main
Paul Bakaus 5 years ago committed by GitHub
parent 945e5fde5a
commit 2b3d7bb3fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -107,13 +107,13 @@
}, },
"website": "http://awstats.sourceforge.net" "website": "http://awstats.sourceforge.net"
}, },
"Accelerated Mobile Pages": { "AMP": {
"cats": [ "cats": [
12 12
], ],
"html": "<html[^>]* (?:amp|⚡)", "html": "<html[^>]* (?:amp|⚡)[^-]",
"icon": "Accelerated-Mobile-Pages.svg", "icon": "Accelerated-Mobile-Pages.svg",
"website": "https://www.ampproject.org" "website": "https://www.amp.dev"
}, },
"Azure": { "Azure": {
"cats": [ "cats": [

Loading…
Cancel
Save