We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b1c2f commit da1781aCopy full SHA for da1781a
app/models/github_project.rb
@@ -2,7 +2,7 @@ class GithubProject
2
include ActiveModel::API
3
4
attr_accessor :url, :commit
5
- validates_format_of :url, with: %r{\Ahttps://github.com/[a-z0-9\-_]+/[a-z0-9\-_]+\z}i
+ validates_format_of :url, with: %r{\Ahttps://github.com/[a-z0-9\-_\.]+/[a-z0-9\-_\.]+\z}i
6
validates_format_of :commit, with: /\A[0-9a-z_\.-]{1,40}\z/i, allow_blank: true
7
8
def owner
0 commit comments