From 3b353c28372541dbe8789c48446ffbcbb8fc4050 Mon Sep 17 00:00:00 2001 From: lolcat Date: Wed, 28 Aug 2024 19:14:15 -0400 Subject: [PATCH] fuck you startpage --- scraper/startpage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scraper/startpage.php b/scraper/startpage.php index ef9def9..ebb1737 100644 --- a/scraper/startpage.php +++ b/scraper/startpage.php @@ -412,7 +412,7 @@ class startpage{ if( preg_match( - '/React\.createElement\(UIStartpage\.AppSerpWeb, ?(.+)\),$/m', + '/React\.createElement\(UIStartpage\.AppSerpWeb, ?(.+)\),?$/m', $html, $matches ) === 0 @@ -1069,7 +1069,7 @@ class startpage{ if( preg_match( - '/React\.createElement\(UIStartpage\.AppSerpImages, ?(.+)\),$/m', + '/React\.createElement\(UIStartpage\.AppSerpImages, ?(.+)\),?$/m', $html, $matches ) === 0 @@ -1194,7 +1194,7 @@ class startpage{ if( preg_match( - '/React\.createElement\(UIStartpage\.AppSerpVideos, ?(.+)\),$/m', + '/React\.createElement\(UIStartpage\.AppSerpVideos, ?(.+)\),?$/m', $html, $matches ) === 0 @@ -1336,7 +1336,7 @@ class startpage{ if( preg_match( - '/React\.createElement\(UIStartpage\.AppSerpNews, ?(.+)\),$/m', + '/React\.createElement\(UIStartpage\.AppSerpNews, ?(.+)\),?$/m', $html, $matches ) === 0