/** * Some detection rules are relative (not standard), * because of the diversity of devices, vendors and * their conventions in representing the User-Agent or * the HTTP headers. * * This method will be used to check custom regexes against * the User-Agent string. * * @param $regex * @param string $userAgent * @return bool * @todo : search in the HTTP headers too. * @static */ public static function match($regex, $userAgent = null) { //Method inherited from \Mobile_Detect return \Jenssegers\Agent\Agent::match($regex, $userAgent); }