Skip to content

Commit

Permalink
Change the regular expression for scraping problem data
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmy committed Nov 12, 2023
1 parent 7d3ab3c commit aaf5f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UseCases/ScrapeBenchmarksAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function getProblemData(array $problemUrls): array

$crawler = $this->client->getCrawler();

preg_match('/var problem = JSON\.parse\(\'(.*)\'\)/', $crawler->html(), $matches);
preg_match('/var problem = JSON\.parse\(\'(.*)\'\);/', $crawler->html(), $matches);

try {
/** @var \stdClass $data */
Expand Down

0 comments on commit aaf5f19

Please sign in to comment.