浏览代码

fuck you startpage

lolcat 1 年之前
父节点
当前提交
3b353c2837
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      scraper/startpage.php

+ 4 - 4
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