Skip to content

Commit

Permalink
[Pattern] Pattern updates
Browse files Browse the repository at this point in the history
  • Loading branch information
deedeeh committed Jun 24, 2024
1 parent 0e2da58 commit 560ae28
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 52 deletions.
13 changes: 7 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ jobs:
--url https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/issues \
--header "authorization: Bearer ${ISBOT_ISSUE_TOKEN}" \
--header 'content-type: application/json' \
--data '{
"title": "Automated issue for failing periodic tests",
"body": "This issue is automatically created. The tests are failing on branch ${CIRCLE_BRANCH}",
"assignees": [ "omrilotan" ],
"labels": [ "automated", "maintenance" ]
}'
--data "{
\"title\": \"Automated issue for failing periodic tests\",
\"body\": \"This issue is automatically created. The tests are failing on job ${CIRCLE_BUILD_URL}\",
\"assignees\": [ \"omrilotan\" ],
\"labels\": [ \"automated\", \"maintenance\" ]
}" \
exit 1
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [5.1.10](https://github.com/omrilotan/isbot/compare/v5.1.9...v5.1.10)

- [Pattern] Pattern updates

## [5.1.9](https://github.com/omrilotan/isbot/compare/v5.1.8...v5.1.9)

- [Pattern] A more careful match for RSS substring
Expand Down
2 changes: 1 addition & 1 deletion fixtures/downloaded/downloaded
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Mon, 10 Jun 2024 10:42:48 GMT
Mon, 24 Jun 2024 10:32:10 GMT
5 changes: 4 additions & 1 deletion fixtures/downloaded/matomo-org.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10 _1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1; +http://www.apple.com/go/applebot)",
"AppSignalBot/1.0 (+https://appsignal.com)",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1)",
"Applebot-Extended",
"iTMS",
"Arachni/v1.5.1",
"Mozilla/2.0 (compatible; Ask Jeeves/Teoma)",
"Mozilla/5.0 (compatible;AspiegelBot)",
Expand Down Expand Up @@ -953,5 +955,6 @@
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 (scanner.ducks.party)",
"Mozilla/5.0 (compatible; Cloudflare-Smart-Transit/1.0; +https://www.cloudflare.com/",
"Mozilla/5.0 (Linux; Android 11; Moto G Power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36 CloudflareObservatory/1.0",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 CloudflareObservatory/1.0"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 CloudflareObservatory/1.0",
"Mozilla/4.0 (compatible; DepSpid/5.07; +http://about.depspid.net)"
]
93 changes: 65 additions & 28 deletions fixtures/downloaded/myip.ms.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "isbot",
"version": "5.1.9",
"version": "5.1.10",
"description": "🤖/👨‍🦰 Recognise bots/crawlers/spiders using the user agent string.",
"keywords": [
"bot",
Expand Down
12 changes: 5 additions & 7 deletions src/patterns.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
" yadirectfetcher",
"(?:^|[^g])news(?!sapphire)",
"(?<! (?:channel/|google/))google(?!(app|/google| pixel))",
"(?<! cu)bot(?:[^\\w]|_|$)",
"(?<! cu)bots?(?:\\b|_)",
"(?<!(?: ya| yandex|^job|inapp;) ?)search",
"(?<!(?:lib))http",
"(?<![hg]m)score",
"@[a-z][\\w-]+\\.",
"\\(\\)",
"\\.com",
"\\b\\d{13}\\b",
"^12345",
"^<",
"^[\\w \\.\\-\\(?:\\):]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)",
"^[^ ]{50,}$",
"^\\d+\\b",
"^\\w+/[\\w\\(\\)]*$",
"^active",
"^ad muncher",
Expand Down Expand Up @@ -48,15 +48,14 @@
"^mozilla/\\d\\.\\d \\w*$",
"^navermailapp",
"^netsurf",
"^offline explorer",
"^offline",
"^postman",
"^python",
"^rank",
"^read",
"^reed",
"^rest",
"^rss",
"^serf",
"^snapchat",
"^space bison",
"^svn",
Expand Down Expand Up @@ -90,6 +89,7 @@
"chrome-lighthouse",
"chromeframe",
"classifier",
"clean",
"cloud",
"crawl",
"cypress/",
Expand Down Expand Up @@ -137,18 +137,16 @@
"retriever",
"rexx;",
"rigor",
"robot",
"rss\\b",
"scan",
"scrape",
"server",
"sogou",
"sparkler/",
"speedcurve",
"speed",
"spider",
"splash",
"statuscake",
"supercleaner",
"synapse",
"synthetic",
"tools",
Expand Down
16 changes: 8 additions & 8 deletions tests/spec/__snapshots__/test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

exports[`isbot module interface interface is as expected 1`] = `
[
[
"getPattern",
"Function",
],
[
"list",
"Array",
Expand All @@ -14,10 +10,6 @@ exports[`isbot module interface interface is as expected 1`] = `
"isbotNaive",
"Function",
],
[
"isbot",
"Function",
],
[
"createIsbot",
"Function",
Expand All @@ -42,5 +34,13 @@ exports[`isbot module interface interface is as expected 1`] = `
"isbotPatterns",
"Function",
],
[
"getPattern",
"Function",
],
[
"isbot",
"Function",
],
]
`;

0 comments on commit 560ae28

Please sign in to comment.