mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
add tests around MatchNamedCaptureGroups + rename
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -63,7 +63,7 @@ func (a *Author) UnmarshalJSON(b []byte) error {
|
||||
}
|
||||
} else {
|
||||
// parse out "name <email> (url)" into an Author struct
|
||||
fields = internal.MatchCaptureGroups(authorPattern, authorStr)
|
||||
fields = internal.MatchNamedCaptureGroups(authorPattern, authorStr)
|
||||
}
|
||||
|
||||
// translate the map into a structure
|
||||
|
||||
Reference in New Issue
Block a user