diff --git a/regexes.yaml b/regexes.yaml index a8f8e097..ee63522f 100644 --- a/regexes.yaml +++ b/regexes.yaml @@ -152,7 +152,7 @@ user_agent_parsers: # AWS S3 Clients # must come before "Bots General matcher" to catch "boto"/"boto3" before "bot" - - regex: '\b(Boto3?|JetS3t|aws-(?:cli|sdk-(?:cpp|go|java|nodejs|ruby2?|dotnet-(?:\d{1,2}|core)))|s3fs)/(\d+)\.(\d+)(?:\.(\d+)|)' + - regex: '\b(Boto3?|JetS3t|aws-(?:cli|sdk-(?:cpp|go(?:-v2)?|java|js|nodejs|ruby(?:2|3)?|dotnet-(?:\d{1,2}|core)))|s3fs)/(\d+)\.(\d+)(?:\.(\d+)|)' # SAFE FME - regex: '(FME)\/(\d+\.\d+)\.(\d+)\.(\d+)' diff --git a/tests/test_ua.yaml b/tests/test_ua.yaml index 2b2bee8c..e3dc4ba1 100644 --- a/tests/test_ua.yaml +++ b/tests/test_ua.yaml @@ -7938,6 +7938,12 @@ test_cases: major: '2' minor: '2' patch: '18' + + - user_agent_string: 'aws-sdk-ruby3/3.170.0 ruby/3.0 x86_64-linux-musl aws-sdk-core/3.170' + family: 'aws-sdk-ruby3' + major: '3' + minor: '170' + patch: '0' - user_agent_string: 'aws-sdk-cpp/1.0.64 Linux/4.4.0-66-generic x86_64' family: 'aws-sdk-cpp' @@ -7950,12 +7956,24 @@ test_cases: major: '1' minor: '4' patch: '12' + + - user_agent_string: 'aws-sdk-go-v2/1.18.0 os/linux lang/go/1.20 md/GOOS/linux md/GOARCH/amd64 api/sts/1.18' + family: 'aws-sdk-go-v2' + major: '1' + minor: '18' + patch: '0' - user_agent_string: 'aws-sdk-nodejs/2.141.0 win32/v8.4.0' family: 'aws-sdk-nodejs' major: '2' minor: '141' patch: '0' + + - user_agent_string: 'aws-sdk-js/3.186.0 os/linux/5.15 lang/js md/nodejs/18.15 api/sts/3.186' + family: 'aws-sdk-js' + major: '3' + minor: '186' + patch: '0' - user_agent_string: 'JetS3t/0.9.0 (Linux/4.4.0-1044-aws; amd64; en; JVM 1.8.0_131)' family: 'JetS3t'