-
Notifications
You must be signed in to change notification settings - Fork 138
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
WIP: - Parse Host, Port, Image and Tag with regular expressions #64
base: master
Are you sure you want to change the base?
Conversation
- Dockerfile uses alpine
- Fixed code to work with no_registry_root registries
the first version used regexs, we switched to custom parsing later on 876ecd8 |
What's the point in using custom implementation instead regex? :D |
One pass instead of multiple matches as it was before, you approach looks interesting |
state = stateTag | ||
} | ||
nameParts = append(nameParts, part) | ||
if !utils.ImageOnlyRegexp.MatchString(string(qname)) || strings.HasPrefix(qname, "localhost/") { |
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.
The type of qname
already is string, why still need to convert it?
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.
Ups, I thought it was a byte. There is no point in convert string into string XD
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.
The approach is good, which makes it much clearer.
No description provided.