From 77ec830cc63a372eb4d320f036dfcd3f3c42bbba Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Thu, 12 Dec 2024 17:46:47 +0100 Subject: [PATCH] Update regex for Cookie AutoDelete and LocalCDN for Chrome --- modules/CookieAutoDeleteChrome.php | 2 +- modules/LocalCDNChrome.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/CookieAutoDeleteChrome.php b/modules/CookieAutoDeleteChrome.php index 208330a..2aac2db 100644 --- a/modules/CookieAutoDeleteChrome.php +++ b/modules/CookieAutoDeleteChrome.php @@ -7,7 +7,7 @@ class CookieAutoDeleteChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/cookie-autodelete/fhcgjolkccmbidfldomjliifgaodjagh')) - return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); + return $this->parse('/
([\d\.]+)<\/div>/'); return false; } } diff --git a/modules/LocalCDNChrome.php b/modules/LocalCDNChrome.php index 126a45e..b769190 100644 --- a/modules/LocalCDNChrome.php +++ b/modules/LocalCDNChrome.php @@ -7,7 +7,7 @@ class LocalCDNChrome extends PatchBase { } function check() : bool { if ($this->fetch('https://chrome.google.com/webstore/detail/localcdn/njdfdhgcmkocbgbhcioffdbicglldapd')) - return $this->parse('/\\\"version\\\": \\\"([\d\.]+)\\\"/'); + return $this->parse('/
([\d\.]+)<\/div>/'); return false; } }