lolcat 1 год назад
Родитель
Сommit
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