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 repo_url_suffix regex validation #176

Merged
merged 1 commit into from
Nov 25, 2015
Merged

Fix repo_url_suffix regex validation #176

merged 1 commit into from
Nov 25, 2015

Conversation

tsde
Copy link
Contributor

@tsde tsde commented Nov 17, 2015

Hi guys,

This PR is linked to #174
I made a small mistake in regex checks for repo_url_suffix. This could lead to $repo_url_suffix not raising an error when wrongly set to 0.10.0 for example (the 0.10 is matched only so validate_re is not failing). This PR fixes that.

Sorry for that ;)

@igalic
Copy link
Contributor

igalic commented Nov 18, 2015

@tsde would you mind adding a test to catch that assumption?

@tsde
Copy link
Contributor Author

tsde commented Nov 20, 2015

@igalic I've added some test. And, bonus, also included tests on repo_url_suffix for redhat-based OS. Previously, there were no such tests for these distros.

Let me know if everything is fine

igalic added a commit that referenced this pull request Nov 25, 2015
@igalic igalic merged commit 3241dba into voxpupuli:master Nov 25, 2015
@igalic
Copy link
Contributor

igalic commented Nov 25, 2015

nice! thank you @tsde

@tsde tsde deleted the fix_repo_url_suffix_regex_validation branch November 25, 2015 15:52
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.

2 participants