Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
xstreamka committed May 13, 2024
1 parent e22d66b commit b86c943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mobile_Detect.php
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ public function match($regex, $userAgent = null)
if (empty($userAgent)) {
return false;
}
$match = (bool) preg_match(sprintf('#%s#is', $regex), (false === empty($userAgent) ? $userAgent : $this->userAgent), $matches);
$match = (bool) preg_match(sprintf('#%s#is', $regex), $userAgent, $matches);
// If positive match is found, store the results for debug.
if ($match) {
$this->matchingRegex = $regex;
Expand Down

0 comments on commit b86c943

Please sign in to comment.