fix yd bug

This commit is contained in:
Omair Saleh
2023-08-15 13:46:24 +08:00
parent 7d3901ee48
commit c30c5a36f2
@@ -32,7 +32,7 @@ class FetchesDataFromYDPortal
$content = str_replace("\r",'', $content);
$content = str_replace("\n",'', $content);
$content = str_replace("\t",'', $content);
dump($content);
$content = preg_replace('/"data":\s*}/', '"data":""', $content);
return json_decode($content);
}
}