Firefox Translations: restrict to version number

This commit is contained in:
Steffen Lange 2022-07-26 22:44:39 +02:00
parent be0e44293d
commit e7e50951c9

View file

@ -7,7 +7,7 @@ class FirefoxTranslations extends PatchBase {
} }
function check() : bool { function check() : bool {
if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/firefox-translations/')) 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; return false;
} }
} }