]> git.openstreetmap.org Git - rails.git/commit
Ensure that urls are only valid if the entire string is a url
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 1 Apr 2020 15:53:37 +0000 (17:53 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 1 Apr 2020 15:53:37 +0000 (17:53 +0200)
commita219df24ca8e621e8936bb9fc8b75f8f7f1e15da
tree74a7cc8485f8683994373644ade95d76f583c1bb
parente47c11c644c3e73e8dcc95d3ee9c133e050360f0
Ensure that urls are only valid if the entire string is a url

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.
app/models/client_application.rb
test/models/client_application_test.rb