Update regex for Chrome extensions

This commit is contained in:
Steffen Lange 2024-12-13 13:41:59 +01:00
parent 99f86e6e15
commit aeb0e4289d
7 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@ class LanguageToolChrome extends PatchBase {
}
function check() : bool {
if ($this->fetch('https://chromewebstore.google.com/detail/rechtschreibpr%C3%BCfung-%E2%80%93-lan/oldceeleldhonbafppcapldpdifcinji'))
return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/');
return $this->parse('/<div class="N3EXSc">([\d\.]+)<\/div>/');
return false;
}
}