From 5e5d38de023c44251cf8c47232ce05209f6c641b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 16 Dec 2017 20:50:24 +0000 Subject: [PATCH] Improve mediawiki version detection (#1914) The versions of mediawiki can be a bit strange, especially on [wikipedia](https://en.wikipedia.org/wiki/United_Arab_Emirates), since apparently the WMF has special ones. I've also seen `-beta` sometimes (altough I don't have a website handy to prove it, sorry :/ ) --- src/apps.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 3ee228359..db320ccd3 100644 --- a/src/apps.json +++ b/src/apps.json @@ -5197,9 +5197,10 @@ ], "html": "(?:]+>Powered by MediaWiki|<[^>]+id=\"t-specialpages)", "icon": "MediaWiki.png", + "env": "^mediaWiki$", "implies": "PHP", "meta": { - "generator": "^MediaWiki ?([\\d.]+)$\\;version:\\1" + "generator": "^MediaWiki ?([\\d.]+)\\;version:\\1" }, "website": "http://www.mediawiki.org" },