Fixes #3512 - allow http for local gitlab or github enterprise instance
This commit is contained in:
parent
0fb4c1234e
commit
a5de91064a
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ class GitHub
|
|||
end
|
||||
|
||||
def variables!(url)
|
||||
if url !~ %r{^https://([^/]+)/([^/]+)/([^/]+)/issues/(\d+)$}
|
||||
if url !~ %r{^https?://([^/]+)/([^/]+)/([^/]+)/issues/(\d+)$}
|
||||
raise Exceptions::UnprocessableEntity, 'Invalid GitHub issue link format'
|
||||
end
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ class GitLab
|
|||
end
|
||||
|
||||
def variables(url)
|
||||
if url !~ %r{^https://([^/]+)/(.*)/-/issues/(\d+)$}
|
||||
if url !~ %r{^https?://([^/]+)/(.*)/-/issues/(\d+)$}
|
||||
raise Exceptions::UnprocessableEntity, 'Invalid GitLab issue link format'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue