Closed omrilotan closed 2 years ago
Add "matches" and "clear" methods used to clear patterns matching a user agent string.
This will be a suitable solution for such cases. The example below includes extra steps to display the journey.
For example:
const ua = 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SearchRobot/1.0' sbot(ua) // true isbot.find(ua) // 'Search' isbot.matches(ua) // [ '(?<! cu)bot', '(?<! (ya|yandex))search' ] isbot.clear(ua) isbot(ua) // false isbot.find(ua) // null
Resolve issue #166
Add "matches" and "clear" methods used to clear patterns matching a user agent string.
This will be a suitable solution for such cases. The example below includes extra steps to display the journey.
For example:
Resolve issue #166