Skip to content

Commit

Permalink
clarify comments
Browse files Browse the repository at this point in the history
Signed-off-by: SemProvoost
  • Loading branch information
SemProvoost committed Aug 2, 2023
1 parent 817c17d commit 45f20a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syft/pkg/cataloger/binary/default_classifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ var defaultClassifiers = []classifier{
Class: "nginx-binary",
FileGlob: "**/nginx",
EvidenceMatcher: evidenceMatchers(
// [NUL]nginx version: nginx/1.25.1
// [NUL]nginx version: nginx/1.25.1 - fetches '1.25.1'
fileContentsVersionMatcher(`(?m)(\x00|\?)nginx version: nginx\/(?P<version>[0-9]+\.[0-9]+\.[0-9]+(?:\+\d+)?(?:-\d+)?)`),
// [NUL]nginx version: openresty/1.21.4.1
// [NUL]nginx version: openresty/1.21.4.1 - fetches 'openresty/1.21.4.1'
fileContentsVersionMatcher(`(?m)(\x00|\?)nginx version: (?P<version>[a-z]*\/[0-9]+\.[0-9]+\.[0-9]+(?:\.[0-9]+)?(?:\+\d+)?(?:-\d+)?)`),
),
Package: "nginx",
Expand Down

0 comments on commit 45f20a8

Please sign in to comment.