Skip to content

should block http in vcs links and add custom error when http is used instead of https and when a invalid github username is entered #473

@JeremyRudman

Description

@JeremyRudman

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions