Skip to content

Commit

Permalink
Merge pull request #261 from drjaydenm/newrelic-pinger
Browse files Browse the repository at this point in the history
Added new relic pinger bot
  • Loading branch information
commenthol authored Aug 30, 2017
2 parents 4af9a7e + ed4c2b5 commit 7c57743
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ user_agent_parsers:
- regex: '(PingdomTMS)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'PingdomBot'

# New Relic Pinger
- regex: '(NewRelicPinger)/(\d+)\.(\d+)'
family_replacement: 'NewRelicPingerBot'

#StatusCake
- regex: '(\(StatusCake\))'
family_replacement: 'StatusCakeBot'
Expand Down
6 changes: 6 additions & 0 deletions tests/test_ua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,12 @@ test_cases:
minor: '8'
patch: '5'

- user_agent_string: 'NewRelicPinger/1.0 (1025794)'
family: 'NewRelicPingerBot'
major: '1'
minor: '0'
patch:

- user_agent_string: 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/98 Safari/537.4 (StatusCake)'
family: 'StatusCakeBot'
major:
Expand Down

0 comments on commit 7c57743

Please sign in to comment.