From 3b99f705633e4390482ecdbffd17f465c6b0aea8 Mon Sep 17 00:00:00 2001 From: Florian Bayer Date: Tue, 10 Jun 2025 19:25:13 +0200 Subject: [PATCH] Update README.md - user main branch for file URLs the master branch was still used for a couple of links in the README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d62fc00e..2493e013 100644 --- a/README.md +++ b/README.md @@ -150,11 +150,11 @@ browser.mobile? #=> false ### What's being detected? - For a list of platform detections, check - [lib/browser/platform.rb](https://github.com/fnando/browser/blob/master/lib/browser/platform.rb) + [lib/browser/platform.rb](https://github.com/fnando/browser/blob/main/lib/browser/platform.rb) - For a list of device detections, check - [lib/browser/device.rb](https://github.com/fnando/browser/blob/master/lib/browser/device.rb) + [lib/browser/device.rb](https://github.com/fnando/browser/blob/main/lib/browser/device.rb) - For a list of bot detections, check - [bots.yml](https://github.com/fnando/browser/blob/master/bots.yml) + [bots.yml](https://github.com/fnando/browser/blob/main/bots.yml) ### Detecting modern browsers @@ -298,7 +298,7 @@ following requirements will be considered a bot. - Empty user agent string - User agent that matches `/crawl|fetch|search|monitoring|spider|bot/` - Any known bot listed under - [bots.yml](https://github.com/fnando/browser/blob/master/bots.yml) + [bots.yml](https://github.com/fnando/browser/blob/main/bots.yml) To add custom matchers, you can add a callable object to `Browser::Bot.matchers`. The following example matches everything that has a