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

fix: update regex to excape the dot in it #975

Merged

Conversation

wangshu3000
Copy link
Contributor

This is a PR to fix #971

The regex in oci_detector.go is not in correct format.

In regex, the dot . in domain should be escaped.
For example: *., should be *.

So that it'll match the . as a . string, but not any single character in regex.

Copy link
Member

@jalseth jalseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jalseth jalseth merged commit 2f13857 into open-policy-agent:master Jul 26, 2024
7 checks passed
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 this pull request may close these issues.

fix: There is a regex issue in downloader
2 participants