The regex should block http links and than the validate.js should send a new error telling the user to make the link https it should also send a custom error message if the username if not valide
|
validates_format_of :vcs_url, with: %r{((github.com\/\w+\/?)|(gitlab.com\/\w+\/?)|(bitbucket.org\/\w+\/?))}, allow_blank: true, message: "Must be a GitHub, GitLab or Bitbucket url" |