omrilotan / isbot

🤖/👨‍🦰 Detect bots/crawlers/spiders using the user agent string
https://isbot.js.org/
The Unlicense
921 stars 77 forks source link

Add a naive regex fallback #237

Closed omrilotan closed 9 months ago

omrilotan commented 9 months ago

This changeset adds a fallback for engines that do not support lookbehind in regular expressions. This fallback is less accurate but catches ~78% of bots with less than 1% false-positive. It is also exposed as "isbotNaive" export.

Solves #236