-
Couldn't load subscription status.
- Fork 727
adds the yarn.lock cataloger #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Alfredo Deza <[email protected]>
Signed-off-by: Alfredo Deza <[email protected]>
Signed-off-by: Alfredo Deza <[email protected]>
Signed-off-by: Alfredo Deza <[email protected]>
Signed-off-by: Alfredo Deza <[email protected]>
Signed-off-by: Alfredo Deza <[email protected]>
| "github.com/anchore/syft/syft/pkg" | ||
| ) | ||
|
|
||
| var composedNameExp = regexp.MustCompile("^\"(@{1}[^@]+)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, non-blocking: There might be a simplification here... I think you may be able to get the composed & single into a single regex, matching on the first capture group: "^\"(@{0,1}[^@]+)" (not 100% certain though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried fiddling around with the regex to match both (and I tried again with your suggestion) but couldn't get it to work for both. We can always come back to this one and improve it if we have a nicer regex to work with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good as is, added an optional regex to try, but consider it non-blocking
adds the yarn.lock cataloger
Parses
yarn.lockfiles while dedupping (per file only).Closes #8