Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored Jul 22, 2023
1 parent 96bb442 commit 82af724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
function rename_chromedriver_binary(string $binary, string $operatingSystem): string
{
return strpos($binary, DIRECTORY_SEPARATOR) > 0
return mb_strpos($binary, DIRECTORY_SEPARATOR) > 0
? array_reverse(explode(DIRECTORY_SEPARATOR, str_replace('chromedriver', 'chromedriver-'.$operatingSystem, $binary), 2))[0]
: str_replace('chromedriver', 'chromedriver-'.$operatingSystem, $binary);
}
Expand Down

0 comments on commit 82af724

Please sign in to comment.