From ba8f3bf9b552c9d0254cbf4fc0f1210fe405679c Mon Sep 17 00:00:00 2001 From: Oleh Marakhovskyi Date: Thu, 30 Jan 2025 13:49:16 +0200 Subject: [PATCH] Changed master to main in docs --- CHANGELOG.md | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07a581b9..0ea6b8e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -112,7 +112,7 @@ (`Browser::Bot.detect_empty_ua!` and `Browser::Bot.detect_empty_ua?`). - [BREAKING CHANGE] Bot detection is now more aggressive by default. It matches empty user agents, anything that matches `crawl|fetch|search|monitoring|spider|bot`, - and anything listed under https://github.com/fnando/browser/blob/master/bots.yml. + and anything listed under https://github.com/fnando/browser/blob/main/bots.yml. - Add Jaunt to the bot list. ## 2.7.1 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