From e7e50951c96a4892f87a1d2b7ca743dd9cef76a6 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Tue, 26 Jul 2022 22:44:39 +0200 Subject: [PATCH] Firefox Translations: restrict to version number --- modules/FirefoxTranslations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FirefoxTranslations.php b/modules/FirefoxTranslations.php index 9f0e0b3..52d398d 100644 --- a/modules/FirefoxTranslations.php +++ b/modules/FirefoxTranslations.php @@ -7,7 +7,7 @@ class FirefoxTranslations extends PatchBase { } function check() : bool { if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/firefox-translations/')) - return $this->parse('/"version":"([\d\.a-z]+)"/'); + return $this->parse('/"version":"([\d\.]+)(buildid.*)?"/'); return false; } }