-
Notifications
You must be signed in to change notification settings - Fork 567
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
Port ruby cataloger to new generic cataloger pattern #1322
Conversation
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
69096a8
to
45eccaf
Compare
Benchmark Test ResultsBenchmark results from the latest changes vs base branch
|
@@ -36,14 +35,14 @@ var patterns = map[string]*regexp.Regexp{ | |||
"homepage": regexp.MustCompile(`.*\.homepage\s*=\s*["']{1}(?P<homepage>.*)["']{1} *`), | |||
|
|||
// match example: files = ["exe/bundle".freeze, "exe/bundler".freeze] ---> "exe/bundle".freeze, "exe/bundler".freeze | |||
"files": regexp.MustCompile(`.*\.files\s*=\s*\[(?P<files>.*)\] *`), | |||
"files": regexp.MustCompile(`.*\.files\s*=\s*\[(?P<files>.*)] *`), |
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.
Why did we have to remove matching on the \
here?
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.
IDE flagged this as a redundant escape (which appears correct) -- I've been doing a lot of boyscouting with these port PRs
Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Follow up to #1281 , porting the ruby cataloger to the new generic.Cataloger.