Skip to content

Commit

Permalink
Fix website parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 11, 2019
1 parent 982e065 commit 2d6a8d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected function latestVersion()
{
$home = file_get_contents(static::$homeUrl);

preg_match('/Latest stable release:.*?\?path=([\d.]+)/', $home, $matches);
preg_match('/Latest stable.*?\?path=([\d.]+)/', $home, $matches);

return $matches[1];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/UpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function latestVersion()
{
$home = file_get_contents('http://chromedriver.chromium.org/home');

preg_match('/Latest stable release:.*?\?path=([\d.]+)/', $home, $matches);
preg_match('/Latest stable.*?\?path=([\d.]+)/', $home, $matches);

return $matches[1];
}
Expand Down

0 comments on commit 2d6a8d2

Please sign in to comment.