kevinelliott / agent_orange

Parse and process User Agents like a secret one
126 stars 36 forks source link

Remove redundant strings from bot regex #20

Closed lencioni closed 12 years ago

lencioni commented 12 years ago

The regex that determines if a user agent is a bot included "bot" but also a couple of redundant strings, namely "googlebot" and "robot".

This commit removes those redundant strings, allowing the regex to rely on matching just "bot".

lencioni commented 12 years ago

I rolled this into the next pull request, so I'm going to close this one.