Skip to content
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

Whitelist regex matches substrings #25

Closed
orymate opened this issue Dec 5, 2018 · 0 comments · Fixed by #26
Closed

Whitelist regex matches substrings #25

orymate opened this issue Dec 5, 2018 · 0 comments · Fixed by #26
Assignees

Comments

@orymate
Copy link
Contributor

orymate commented Dec 5, 2018

Substring matching is used on whitelisted image names instead of full-string match.

match, err := regexp.Compile(wl.Spec.Regexp)

MatchString reports whether the string s contains any match of the regular expression re.

Should surround with ^(/)$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants