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

Ensure that urls are only valid if the entire string is a url #2579

Merged
merged 1 commit into from Apr 15, 2020

Conversation

gravitystorm
Copy link
Collaborator

Replacement PR for #2570 and #2578

This replaces our homegrown regexps (that didn't quite work) with ruby built-in regexps, and uses the termination anchor to ensure that the entire string, not just the first part, is validated.

This replaces our homegrown regexps (that didn't quite work) with
ruby built-in regexps, and uses the termination anchor to ensure
that the entire string, not just the first part, is validated.
@tomhughes
Copy link
Member

I hadn't done anything with this because I wasn't sure there was any point spending time on a temporary solution when we plan to switch to validates_url once there is a new release..

@gravitystorm
Copy link
Collaborator Author

I hadn't done anything with this because I wasn't sure there was any point spending time on a temporary solution when we plan to switch to validates_url once there is a new release..

The last release was over 12 months ago, and the PR that we need was merged over 6 months ago. I don't think validates_url has a release cadence worth waiting for!

@tomhughes tomhughes merged commit 0dffed7 into openstreetmap:master Apr 15, 2020
@gravitystorm gravitystorm deleted the validate_url_2 branch August 12, 2020 08:55
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.

None yet

2 participants